commit | 47ed648390b99675d041a1fb110c73a731d5d7cc | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 08 21:36:13 2013 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 08 21:36:13 2013 -0400 |
tree | e2cead1ad58b483fd55364ceb588e0493db2f5f3 | |
parent | 7287097c3f388290b2a13b429f69101352fec654 [diff] [blame] |
fix NameError
diff --git a/plstackapi/planetstack/views/roles.py b/plstackapi/planetstack/views/roles.py index 97d7761..639b008 100644 --- a/plstackapi/planetstack/views/roles.py +++ b/plstackapi/planetstack/views/roles.py
@@ -48,6 +48,7 @@ return Response(status=status.HTTP_404_NOT_FOUND) def delete(self, request, pk, format=None): + data = parse_request(request.DATA) if 'auth' not in data: return Response(status=status.HTTP_400_BAD_REQUEST) delete_role(data['auth'], {'role_id': pk})