mirror of
https://github.com/django/django.git
synced 2025-08-11 04:19:11 +00:00
Adjusted BaseFormSet.get_form_kwargs example in docs.
This commit is contained in:
parent
33f4de34e6
commit
df2db8b4a5
@ -748,6 +748,9 @@ argument - the index of the form in the formset. The index is ``None`` for the
|
|||||||
... kwargs['custom_kwarg'] = index
|
... kwargs['custom_kwarg'] = index
|
||||||
... return kwargs
|
... return kwargs
|
||||||
|
|
||||||
|
>>> ArticleFormSet = formset_factory(MyArticleForm, formset=BaseArticleFormSet)
|
||||||
|
>>> formset = ArticleFormSet()
|
||||||
|
|
||||||
.. _formset-prefix:
|
.. _formset-prefix:
|
||||||
|
|
||||||
Customizing a formset's prefix
|
Customizing a formset's prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user