On 7 Lis, 18:25, fest <hell...@gmail.com> wrote: > From my experience, max_length is not taken into account when you > override model field in form field.
This is (and was, when I first time faced it) quite obvious for me . If ModelForm was modifying overridden fields, the whole concept of overriding would be useless. On the other hand it would be nice if we could write something like: first_name = forms.CharField(max_length=copy_from_model) -- Tomasz Zieliński http://pyconsultant.eu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---