diff options
| author | Tom Christie | 2012-09-08 22:13:48 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-08 22:13:48 +0100 |
| commit | 27a51094851ff8fe93ff4f604f0f1daee44c770a (patch) | |
| tree | 04b7e4171ccb32a0dfab5474f83b3038917aae42 /djangorestframework/mixins.py | |
| parent | b5e07abc15f0937263e183b7800f30b558e37a1b (diff) | |
| parent | a33c21764a95d1d7ceb632e09b7a0bdd7010ad2f (diff) | |
| download | django-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.py | 2 |
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): |
