class ModelForm should copy Model 's inner class Field max_length attribute
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When using model-based forms, when the framework create form class from the base model, max_length attribute of fields should be copied to the corresponding fields in ModelForm class.
This will allow template to use such attribute as variable tags, keeping consistency from model all the way to form. This is especially so when using django.views.generic.create_object, where the ModelForm is generated by the framework.
The current 1.1.1 implementation achieve this only when widget is used in the template.