summaryrefslogtreecommitdiff
path: root/tests/forms_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/forms_tests')
-rw-r--r--tests/forms_tests/tests/test_formsets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py
index 26d9e15605..f552f689dc 100644
--- a/tests/forms_tests/tests/test_formsets.py
+++ b/tests/forms_tests/tests/test_formsets.py
@@ -56,8 +56,8 @@ SplitDateTimeFormSet = formset_factory(SplitDateTimeForm)
class CustomKwargForm(Form):
- def __init__(self, *args, **kwargs):
- self.custom_kwarg = kwargs.pop('custom_kwarg')
+ def __init__(self, *args, custom_kwarg, **kwargs):
+ self.custom_kwarg = custom_kwarg
super().__init__(*args, **kwargs)