aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2012-09-08 14:10:29 -0700
committerTom Christie2012-09-08 14:10:29 -0700
commita33c21764a95d1d7ceb632e09b7a0bdd7010ad2f (patch)
tree40ad302d8b526a20028f81275edf7bbf2c63a830 /djangorestframework/mixins.py
parent247696e820dfe4535b3141d744129d654f9b6aea (diff)
parentef0bf1e775161578ab16be165d4bdb8003040f6c (diff)
downloaddjango-rest-framework-a33c21764a95d1d7ceb632e09b7a0bdd7010ad2f.tar.bz2
Merge pull request #256 from markotibold/put-post-delete
Re-enable PUT/POST/DELETE in the browsable api
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):