On Mar 5, 2:40 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Mar 4, 2009, at 10:33 PM, Julien Phalip <jpha...@gmail.com> wrote: > > > > > > > On Mar 5, 2:16 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > >> 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 > > > Hi Alex, > > > I did search the ticket system and this list before posting but > > couldn't find any reference to this issue. Would be great if you could > > point me out to which ticket it is. > > > Thanks a lot, > > > Julien > > Unfortunately I'm on a horrible setup right now but if you check for > tickets assigned to me(Alex) it should jump out. > > Alex
Ok, thanks. I assume it's #10059. 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 -~----------~----~----~----~------~----~------~--~---