From dca8dabd63a95169803e69364a58222f41497879 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 8 Apr 2013 00:24:43 -0400 Subject: [PATCH] fix syntax error --- plstackapi/planetstack/views/roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plstackapi/planetstack/views/roles.py b/plstackapi/planetstack/views/roles.py index 6a08daa..8286f9f 100644 --- a/plstackapi/planetstack/views/roles.py +++ b/plstackapi/planetstack/views/roles.py @@ -14,7 +14,7 @@ class RoleListCreate(APIView): def post(self, request, format = None): - if 'auth' not in request.DATA + if 'auth' not in request.DATA: return Response(status=status.HTTP_400_BAD_REQUEST) else if 'name' in request.DATA: role = add_role(request.DATA['auth'], request.DATA['name']) -- 2.47.0