#13326: class ModelForm should copy Model 's inner class Field max_length 
attribute
-------------------------------+--------------------------------------------
 Reporter:  m2k1...@gmail.com  |       Owner:  nobody    
   Status:  new                |   Milestone:            
Component:  Core framework     |     Version:  1.1       
 Keywords:  ModelForm          |       Stage:  Unreviewed
Has_patch:  0                  |  
-------------------------------+--------------------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13326>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to