Ticket #11755: modelforms_change.diff

File modelforms_change.diff, 676 bytes (added by ffualo, 15 years ago)

A recommended documentation addition

  • topics/forms/modelforms.txt

     
    512512
    513513    >>> AuthorFormSet = modelformset_factory(Author, formset=BaseAuthorFormSet)
    514514
     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
    515522Controlling which fields are used with ``fields`` and ``exclude``
    516523-----------------------------------------------------------------
    517524
Back to Top