Verified Commit 5f01e62d authored by Marco Marinello's avatar Marco Marinello
Browse files

Fix redirection after deletion

parent d564c8bb
......@@ -117,7 +117,7 @@ class DropHost(UserMixin, DeleteView):
template_name = "hosts/drop_host.html"
def get_success_url(self):
return reverse_lazy("detail", kwargs={"pk": self.object.school.pk})
return reverse_lazy("school_detail", kwargs={"pk": self.object.school.pk})
@login_required
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment