#24255: modelformset_factory examples in documentation do not specify a field 
list
-------------------------------+--------------------
     Reporter:  gasman         |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  master
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Several of the examples for modelformset_factory in the documentation now
 fail in Django 1.8, because they do not pass a 'fields' or 'exclude'
 parameter (either directly to the modelformset_factory function, or
 indirectly by specifying a ModelForm subclass).

 For example:
 
https://github.com/django/django/blob/a15aba66f2fc650f70a791fb7fa880cf85cb1229/docs/topics/forms/modelforms.txt#L717

 {{{
 >>> from django.forms.models import modelformset_factory
 >>> from myapp.models import Author
 >>> AuthorFormSet = modelformset_factory(Author)
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/Users/matthew/.virtualenvs/dj18/lib/python2.7/site-
 packages/django/forms/models.py", line 827, in modelformset_factory
     "Calling modelformset_factory without defining 'fields' or "
 ImproperlyConfigured: Calling modelformset_factory without defining
 'fields' or 'exclude' explicitly is prohibited.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24255>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.5e7bcedde89d578187ecf443e1aad80e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to