From 8142fc5f1c40578f6c7b33855a5b90280e7c966e Mon Sep 17 00:00:00 2001
From: Tanner Prestegard <tanner.prestegard@ligo.org>
Date: Wed, 7 Nov 2018 13:50:15 -0600
Subject: [PATCH] Aesthetic update to ValidateDestroyMixin

---
 gracedb/api/v1/mixins.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gracedb/api/v1/mixins.py b/gracedb/api/v1/mixins.py
index 1cf5ea45d..d8f577708 100644
--- a/gracedb/api/v1/mixins.py
+++ b/gracedb/api/v1/mixins.py
@@ -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
-- 
GitLab