From: Tony Mack Date: Mon, 8 Apr 2013 04:24:43 +0000 (-0400) Subject: fix syntax error X-Git-Tag: 1.0~241 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dca8dabd63a95169803e69364a58222f41497879;p=plstackapi.git fix syntax error --- 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'])