Return status code 304 when template is not updated.

Moved import
This commit is contained in:
Rebecca Law
2016-06-01 11:50:45 +01:00
parent 0a9cdbd75a
commit 05e72b07ae
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ def update_template(service_id, template_id):
update_template['content'] = _strip_html(update_template['content'])
# Check if there is a change to make.
if current_data == update_template:
return jsonify(data=update_template), 200
return jsonify(data=update_template), 304
update_dict, errors = template_schema.load(update_template)
if errors: