Ticket #11755: modelforms_change.diff
File modelforms_change.diff, 676 bytes (added by , 15 years ago) |
---|
-
topics/forms/modelforms.txt
512 512 513 513 >>> AuthorFormSet = modelformset_factory(Author, formset=BaseAuthorFormSet) 514 514 515 .. note:: 516 Occasionally you may want to return a formset that does not include any objects 517 from the model (for example, for a blank form). This can be achieved with:: 518 519 >>> AuthorFormSet(queryset=Author.objects.none()) 520 521 515 522 Controlling which fields are used with ``fields`` and ``exclude`` 516 523 ----------------------------------------------------------------- 517 524