mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
This commit is contained in:
committed by
Tim Graham
parent
0ec4dc91e0
commit
8838d4dd49
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user