once more polished

This commit is contained in:
Ludwig Kraatz 2012-11-14 13:24:20 +01:00
parent 8b999c6bb5
commit d9c62c20a7

View File

@ -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: