diff options
| author | Tom Christie | 2012-09-17 20:19:45 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-17 20:19:45 +0100 |
| commit | 308677037f1b1f2edbd2527beac8505033c98bdc (patch) | |
| tree | ca71c4429058c769dd17283a4da75d9a01409fce /djangorestframework | |
| parent | 549ebdc1c67c20bdff39a2f4a59012dd010213a1 (diff) | |
| download | django-rest-framework-308677037f1b1f2edbd2527beac8505033c98bdc.tar.bz2 | |
Tweak docs, fix .error_data -> .errors
Diffstat (limited to 'djangorestframework')
| -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 1f06dd34..ec27a4c1 100644 --- a/djangorestframework/mixins.py +++ b/djangorestframework/mixins.py @@ -59,7 +59,7 @@ class UpdateModelMixin(object): self.object = serializer.object self.object.save() return Response(serializer.data) - return Response(serializer.error_data, status=status.HTTP_400_BAD_REQUEST) + return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) class DestroyModelMixin(object): |
