1
0
mirror of https://github.com/django/django.git synced 2025-06-15 00:19:12 +00:00

[4.1.x] Adjusted BaseFormSet.get_form_kwargs example in docs.

Backport of df2db8b4a5237eb881e8450639ef7dd7b2a059fb from main
This commit is contained in:
Riccardo Magliocchetti 2022-11-24 15:16:31 +01:00 committed by Carlton Gibson
parent 754c0c5c6c
commit 8a623d1354

View File

@ -756,6 +756,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