aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorLudwig Kraatz2012-11-14 13:24:20 +0100
committerLudwig Kraatz2012-11-14 13:24:20 +0100
commitd9c62c20a7a025d8e94fb881641731b340088f98 (patch)
tree6400be6f88c5a002432ba0fc5bbde14fecfba6ae /rest_framework/mixins.py
parent8b999c6bb500a045c6c32412009cbd3b1cd5a56b (diff)
downloaddjango-rest-framework-d9c62c20a7a025d8e94fb881641731b340088f98.tar.bz2
once more polished
Diffstat (limited to 'rest_framework/mixins.py')
-rw-r--r--rest_framework/mixins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py
index 089425d5..cd104a7c 100644
--- a/rest_framework/mixins.py
+++ b/rest_framework/mixins.py
@@ -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: