Tweak syntax for a redirect.

This commit is contained in:
Lance Edgar 2016-01-19 16:38:34 -06:00
parent 677e66e358
commit 6b9727d7cb

View file

@ -150,7 +150,7 @@ class MasterView(View):
if not self.deletable_instance(instance): if not self.deletable_instance(instance):
self.request.session.flash("Deletion is not permitted for {} {}".format( self.request.session.flash("Deletion is not permitted for {} {}".format(
self.get_model_title(), instance)) 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) form = self.make_form(instance)