#14082: modelform_factory should use the form's metaclass
----------------------------------------------------------------+-----------
   Reporter:  jspiros                                           |               
 Owner:  nobody    
     Status:  new                                               |            
Milestone:            
  Component:  Forms                                             |              
Version:  SVN       
   Keywords:  ModelForm, ModelFormMetaclass, modelform_factory  |               
 Stage:  Unreviewed
  Has_patch:  1                                                 |           
Needs_docs:  0         
Needs_tests:  1                                                 |   
Needs_better_patch:  0         
----------------------------------------------------------------+-----------
 Currently, django.forms.models.modelform_factory always uses
 ModelFormMetaclass to create the returned form class, even in cases when
 the provided form class has specified its own metaclass. I've attached a
 patch which fixes this. Even though __metaclass__ will always be set for
 ModelForm subclasses, I retained the default functionality should there
 have been a case where a form class without a metaclass was provided to
 modelform_factory.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14082>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to