Kaydet (Commit) e7185a65 authored tarafından Tim Graham's avatar Tim Graham

Refs #29516 -- Reverted inadvertent change in Model.__init__().

üst 4c364143
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment