it should not be possible to delete designers
This commit is contained in:
@@ -36,11 +36,3 @@ def update(id):
|
||||
db.session.commit()
|
||||
tasks.esales.update_designer(designer)
|
||||
return jsonify(designer.to_json())
|
||||
|
||||
|
||||
@mod.route("/<id>", methods=["DELETE"])
|
||||
def delete(id):
|
||||
designer = Designer.query.get_or_404(id)
|
||||
db.session.delete(designer)
|
||||
db.session.commit()
|
||||
return jsonify({"status": "ok"})
|
||||
|
||||
Reference in New Issue
Block a user