id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 13326 class ModelForm should copy Model 's inner class Field max_length attribute m2k1985@… nobody "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. However, if the template wants to use javascript UI such as dojo, the field attribute max_length cannot be accessed if model-based form is used." closed Core (Other) 1.1 invalid ModelForm Unreviewed 0 0 0 0 0 0