mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 01:03:11 +00:00
py3 fix - do not pass args/kwargs to object.__new__
This commit is contained in:
parent
76acbc5470
commit
d6c5b1ed79
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class Block(six.with_metaclass(BaseBlock, object)):
|
|||
def __new__(cls, *args, **kwargs):
|
||||
# adapted from django.utils.deconstruct.deconstructible; capture the arguments
|
||||
# so that we can return them in the 'deconstruct' method
|
||||
obj = super(Block, cls).__new__(cls, *args, **kwargs)
|
||||
obj = super(Block, cls).__new__(cls)
|
||||
obj._constructor_args = (args, kwargs)
|
||||
return obj
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue