git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f23797
)
fix syntax error
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 04:24:43 +0000
(
00:24
-0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 04:24:43 +0000
(
00:24
-0400)
plstackapi/planetstack/views/roles.py
patch
|
blob
|
history
diff --git
a/plstackapi/planetstack/views/roles.py
b/plstackapi/planetstack/views/roles.py
index
6a08daa
..
8286f9f
100644
(file)
--- 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'])