#15125: UpdateView should introspect form_class instead of requiring you to pass
the model
-----------------------------------------+----------------------------------
               Reporter:  sontek         |         Owner:  nobody
                 Status:  new            |     Milestone:  1.3   
              Component:  Generic views  |       Version:  SVN   
             Resolution:                 |      Keywords:        
           Triage Stage:  Accepted       |     Has patch:  1     
    Needs documentation:  0              |   Needs tests:  0     
Patch needs improvement:  0              |  
-----------------------------------------+----------------------------------
Changes (by russellm):

  * stage:  Ready for checkin => Accepted


Comment:

 This isn't quite right -- again, form_class doesn't *necessarily* have a
 _meta attribute, because it might not be a ModelForm.

 I think there may be a better way to handle this, which has the added
 benefit of fixing #15274. We may not be able to reliably get the model
 class from form_class, but we *can* get it from self.object, which always
 exists on an UpdateView.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15125#comment:3>
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-updates@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