Commit d9c62c20 by Ludwig Kraatz

once more polished

parent 8b999c6b
......@@ -23,7 +23,7 @@ class CreateModelMixin(object):
return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
def get_success_headers(self,data):
def get_success_headers(self, data):
if 'url' in data:
return {'Location': data.get('url')}
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment