Adjusted BaseFormSet.get_form_kwargs example in docs.

This commit is contained in:
Riccardo Magliocchetti 2022-11-24 15:16:31 +01:00 committed by GitHub
parent 33f4de34e6
commit df2db8b4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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