Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.

#1 Nov. 8, 2005 00:10:26

Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

FormField Length

In my code, I have:

zip_code = meta.CharField(maxlength=9)

But when it's rendered as a form, it's always given a SIZE="30". Now I
saw that sub-classes like USStateField override the length parameter in
the TextField.__init__ method, but I really don't want to go creating
all kinds of sub-classes just to correct the display of the form. Are
there any other ways to fix this?


Board footer

Moderator control

Enjoy the 24th of April

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support