diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2017-12-11 12:08:45 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-11 07:08:45 -0500 |
| commit | d13a9e44ded4e93570c6ba42ec84e45ddca2505b (patch) | |
| tree | 0df16e6538d8794c39bd62b5a46879b8abe6572c /django/forms/models.py | |
| parent | a9e5ac823df8ba8b786b6450c967ca378c008d0e (diff) | |
Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.
Diffstat (limited to 'django/forms/models.py')
| -rw-r--r-- | django/forms/models.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 3ba7725d53..84a07a275f 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -564,9 +564,7 @@ class BaseModelFormSet(BaseFormSet): queryset=None, *, initial=None, **kwargs): self.queryset = queryset self.initial_extra = initial - defaults = {'data': data, 'files': files, 'auto_id': auto_id, 'prefix': prefix} - defaults.update(kwargs) - super().__init__(**defaults) + super().__init__(**{'data': data, 'files': files, 'auto_id': auto_id, 'prefix': prefix, **kwargs}) def initial_form_count(self): """Return the number of forms that are required in this FormSet.""" |
