Skip to content

Commit

Permalink
Adjusted BaseFormSet.get_form_kwargs example in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx authored Nov 24, 2022
1 parent 33f4de3 commit df2db8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/topics/forms/formsets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ argument - the index of the form in the formset. The index is ``None`` for the
... kwargs['custom_kwarg'] = index
... return kwargs

>>> ArticleFormSet = formset_factory(MyArticleForm, formset=BaseArticleFormSet)
>>> formset = ArticleFormSet()

.. _formset-prefix:

Customizing a formset's prefix
Expand Down

0 comments on commit df2db8b

Please sign in to comment.