> On 3/4/09, Julien Phalip <
jpha...@gmail.com> wrote:
> > 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
>
> It's a suckasding issue. There is a ticket with a patch open about it.
>
> Alex
couldn't find any reference to this issue. Would be great if you could