diff options
| author | Tim Graham <timograham@gmail.com> | 2018-06-25 09:39:16 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-06-25 09:39:16 -0400 |
| commit | e7185a6514ee83802f07ca1f6d2dff615b8fdfed (patch) | |
| tree | 2a4fd2f096864c01ca6e6bb82bc613ceda30a3c9 /django/db | |
| parent | 4c36414323d9035a93a2b7a54ff5281116950fe1 (diff) | |
Refs #29516 -- Reverted inadvertent change in Model.__init__().
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/models/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index 8cdd8f3d01..251825991f 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -481,7 +481,7 @@ class Model(metaclass=ModelBase): except (AttributeError, FieldDoesNotExist): pass for kwarg in kwargs: - raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, list(kwargs)[0])) + raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg)) super().__init__() post_init.send(sender=cls, instance=self) |
