From df2db8b4a5237eb881e8450639ef7dd7b2a059fb Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Thu, 24 Nov 2022 15:16:31 +0100 Subject: [PATCH] Adjusted BaseFormSet.get_form_kwargs example in docs. --- docs/topics/forms/formsets.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index a7a5c0e7943..1624c380a1d 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -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