Hi,

I can't find the exact cause of this, but it seems as though something
has changed in the admin's email widget.

For one of my project I just upgraded Django from revision 9294 to
9975.

Symptomatically, with the recent version, the email field doesn't have
the CSS class 'vTextField', which means it looks smaller than the
other text fields in the form.

Do you know if that's by design or if that's an oversight?

For now, a quick fix is to do something like this in my code:

class MyModelAdmin(ModelAdmin):

    def formfield_for_dbfield(self, db_field, **kwargs):
        if db_field.attname == 'email':
            kwargs['widget'] = AdminTextInputWidget() # Have to do
that, otherwise the email field is bizarrely small (it doesn't have
the 'vTextField' class)...
        return super(MyModelAdmin, self).formfield_for_dbfield
(db_field, **kwargs)

Thanks a lot,

Julien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to