aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2012-09-08 22:13:48 +0100
committerTom Christie2012-09-08 22:13:48 +0100
commit27a51094851ff8fe93ff4f604f0f1daee44c770a (patch)
tree04b7e4171ccb32a0dfab5474f83b3038917aae42 /djangorestframework/mixins.py
parentb5e07abc15f0937263e183b7800f30b558e37a1b (diff)
parenta33c21764a95d1d7ceb632e09b7a0bdd7010ad2f (diff)
downloaddjango-rest-framework-27a51094851ff8fe93ff4f604f0f1daee44c770a.tar.bz2
Merge branch 'restframework2' of https://github.com/tomchristie/django-rest-framework into restframework2
Diffstat (limited to 'djangorestframework/mixins.py')
-rw-r--r--djangorestframework/mixins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py
index 6ab7ab6e..1f06dd34 100644
--- a/djangorestframework/mixins.py
+++ b/djangorestframework/mixins.py
@@ -22,7 +22,7 @@ class CreateModelMixin(object):
self.object = serializer.object
self.object.save()
return Response(serializer.data, status=status.HTTP_201_CREATED)
- return Response(serializer.error_data, status=status.HTTP_400_BAD_REQUEST)
+ return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
class ListModelMixin(object):