mirror of https://github.com/django/django.git
Refs #29516 -- Reverted inadvertent change in Model.__init__().
This commit is contained in:
parent
4c36414323
commit
e7185a6514
|
@ -481,7 +481,7 @@ class Model(metaclass=ModelBase):
|
||||||
except (AttributeError, FieldDoesNotExist):
|
except (AttributeError, FieldDoesNotExist):
|
||||||
pass
|
pass
|
||||||
for kwarg in kwargs:
|
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__()
|
super().__init__()
|
||||||
post_init.send(sender=cls, instance=self)
|
post_init.send(sender=cls, instance=self)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue