aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/mixins.py
diff options
context:
space:
mode:
authorAlec Perkins2012-09-09 13:23:07 -0400
committerAlec Perkins2012-09-09 13:23:07 -0400
commit45001033378a49986d4cd7f5bdf4673b083cdbd0 (patch)
treee5eb2cd49d122ba56d63058413cb3d4d138dae7a /djangorestframework/mixins.py
parent0ae5500f34a81005ba0161dacb280a94f768a885 (diff)
parentd4f8b4cf0683923fe85652f8fd572d2931eb3074 (diff)
downloaddjango-rest-framework-45001033378a49986d4cd7f5bdf4673b083cdbd0.tar.bz2
Merge 'tomchristie/restframework2' into 'browsable-bootstrap'
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):