mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 08:18:25 -04:00
Delete template fix.
This commit is contained in:
@@ -89,8 +89,8 @@ def delete_service_template(service_id, template_id):
|
|||||||
|
|
||||||
form = TemplateForm(**template)
|
form = TemplateForm(**template)
|
||||||
|
|
||||||
if form.validate_on_submit():
|
if request.method == 'POST':
|
||||||
dao.delete_service_template(service_id, template_id)
|
tdao.delete_service_template(service_id, template_id)
|
||||||
return redirect(url_for('.manage_service_templates', service_id=service_id))
|
return redirect(url_for('.manage_service_templates', service_id=service_id))
|
||||||
|
|
||||||
flash('Are you sure you want to delete ‘{}’?'.format(form.name.data), 'delete')
|
flash('Are you sure you want to delete ‘{}’?'.format(form.name.data), 'delete')
|
||||||
|
|||||||
Reference in New Issue
Block a user