Restore template content when deleting template

When the template content was renamed in
9ee8610da0 I missed doing the same change for the
delete template route.

This commit does the same fix, so that template content is still visible when
you’re about to delete a template (so you can make sure it’s the right one).
This commit is contained in:
Chris Hill-Scott
2016-02-08 12:30:01 +00:00
parent d57e54874d
commit de6ed99006
2 changed files with 5 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ def delete_service_template(service_id, template_id):
else:
raise e
template['template_content'] = template['content']
form = TemplateForm(**template)
if request.method == 'POST':