diff --git a/src/dyns/controllers.py b/src/dyns/controllers.py index 39700be..f1c8def 100644 --- a/src/dyns/controllers.py +++ b/src/dyns/controllers.py @@ -185,6 +185,8 @@ class ZoneController(BaseController): zone = self.get_zone(name) self.session.delete(zone) self.session.commit() + if request.want in ('html', 'xhtml'): + raise milla.HTTPSeeOther(location='/zones/') response.status_int = 204 return response diff --git a/src/dyns/templates/zone.html.j2 b/src/dyns/templates/zone.html.j2 index 7a11902..758e209 100644 --- a/src/dyns/templates/zone.html.j2 +++ b/src/dyns/templates/zone.html.j2 @@ -7,6 +7,12 @@ {%- endblock %} {% block body %}