Tweak syntax for a redirect.
This commit is contained in:
parent
677e66e358
commit
6b9727d7cb
|
@ -150,7 +150,7 @@ class MasterView(View):
|
|||
if not self.deletable_instance(instance):
|
||||
self.request.session.flash("Deletion is not permitted for {} {}".format(
|
||||
self.get_model_title(), instance))
|
||||
return HTTPFound(location=self.get_action_url('view', instance))
|
||||
return self.redirect(self.get_action_url('view', instance))
|
||||
|
||||
form = self.make_form(instance)
|
||||
|
||||
|
|
Loading…
Reference in a new issue