#15877: Exception:ModelForm has no model class specified
---------------------------------------+--------------------------
               Reporter:  theaspect@…  |          Owner:  nobody
                   Type:  Bug          |         Status:  reopened
              Milestone:               |      Component:  Forms
                Version:  1.3          |       Severity:  Normal
             Resolution:               |       Keywords:
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
---------------------------------------+--------------------------
Changes (by anonymous):

 * status:  closed => reopened
 * resolution:  needsinfo =>


Comment:

 it's pretty clear
 {{{
 class SomeModel(models.Model):
     ...

 class MyForm(forms.ModelForm):
     class Meta:
         pass

 f = MyForm() #raises exception (ModelForm has no model class specified.)
 f = MyForm(instance=SomeModel) #don't but expected too
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15877#comment:2>
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