Skip to content
Snippets Groups Projects
Commit 8142fc5f authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Aesthetic update to ValidateDestroyMixin

parent 6ab082aa
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,8 @@ class ValidateDestroyMixin(object):
instance = self.get_object()
# Perform validation
is_ok, err_msg = self.validate_destroy(request, instance)
if not is_ok:
request_ok, err_msg = self.validate_destroy(request, instance)
if not request_ok:
return Response(err_msg, status=status.HTTP_400_BAD_REQUEST)
# If validated, destroy the instance and return 204
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment