fix syntax error
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 04:24:43 +0000 (00:24 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 04:24:43 +0000 (00:24 -0400)
plstackapi/planetstack/views/roles.py

index 6a08daa..8286f9f 100644 (file)
@@ -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'])