The newforms.CharField class expects a max_length keyword to define the
max_length, the models.CharField expects a maxlength keyword (without
the underscore). Shouldn't the newforms.CharField class use maxlength
too?
Thanks
Michel Thadeu Sabchuk
Hi Michel,
The newforms.CharField class intentionally uses max_length rather than
maxlength. We'll eventually be changing the model field syntax to use
max_length rather than maxlength, so this was a futureproofing
decision.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com