summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-06-25 09:39:16 -0400
committerTim Graham <timograham@gmail.com>2018-06-25 09:39:16 -0400
commite7185a6514ee83802f07ca1f6d2dff615b8fdfed (patch)
tree2a4fd2f096864c01ca6e6bb82bc613ceda30a3c9
parent4c36414323d9035a93a2b7a54ff5281116950fe1 (diff)
Refs #29516 -- Reverted inadvertent change in Model.__init__().
-rw-r--r--django/db/models/base.py2
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)