views: fix wrong call to super() (fixes #20136)
This commit is contained in:
parent
13208a5d6f
commit
4e3eac8658
|
@ -47,7 +47,7 @@ class EditCoreView(EditProfile):
|
|||
return [field for field in fields if field in cls.fields], labels
|
||||
|
||||
def form_valid(self, form):
|
||||
response = super(EditCoreView, self).form_valid(self)
|
||||
response = super(EditCoreView, self).form_valid(form)
|
||||
hooks.call_hooks('event', name='cut-edit-core', user=self.request.user, form=form)
|
||||
return response
|
||||
|
||||
|
@ -71,7 +71,7 @@ class EditCrownView(EditProfile):
|
|||
return [field for field in fields if field not in cls.fields], labels
|
||||
|
||||
def form_valid(self, form):
|
||||
response = super(EditCrownView, self).form_valid(self)
|
||||
response = super(EditCrownView, self).form_valid(form)
|
||||
hooks.call_hooks('event', name='cut-edit-crown', user=self.request.user, form=form)
|
||||
return response
|
||||
|
||||
|
|
Loading…
Reference in New Issue