Merge pull request #3219 from alphagov/pyup-scheduled-update-2021-04-21

Scheduled weekly dependency update for week 16
This commit is contained in:
Rebecca Law
2021-04-28 09:20:35 +01:00
committed by GitHub
14 changed files with 57 additions and 62 deletions

View File

@@ -157,7 +157,8 @@ def update_template(service_id, template_id):
raise InvalidRequest(errors, status_code=400)
update_dict = template_schema.load(updated_template).data
if update_dict.archived:
update_dict.folder = None
dao_update_template(update_dict)
return jsonify(data=template_schema.dump(update_dict).data), 200