I believe an override with css is the best option here. size=30 is probably the standard for a form field representing CharField. You could open a ticket with a feature request to change the default behavior.
Cheers! Jeff Anderson Steve Bergman wrote: > I have a model with several fields, one of which is defined like this: > > mi = CharField(max_length=1, blank=True) > > When I use it in a generic create_update form, it sets the size=30 and > maxlength=1. This seems odd to me. I can override it with CSS. But > why does it make the field so large in the first place? I'd like for > it to size the field to fit what can go in it on its own. > > I'm using the latest from subversion. > > Thanks, > Steve > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to [EMAIL PROTECTED] > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en > -~----------~----~----~----~------~----~------~--~--
signature.asc
Description: OpenPGP digital signature

