diff options
| author | Marko Tibold | 2012-09-08 21:56:18 +0200 |
|---|---|---|
| committer | Marko Tibold | 2012-09-08 21:56:18 +0200 |
| commit | 55f7dd9bcede90d6c5596e357035007b26a98dba (patch) | |
| tree | dc8ad6609df201441420ab61d243b528bcac9384 /djangorestframework/mixins.py | |
| parent | 024780a974eed66a45f27f27cfbec28bd1432d07 (diff) | |
| download | django-rest-framework-55f7dd9bcede90d6c5596e357035007b26a98dba.tar.bz2 | |
`error_data` -> `errors`
Prefill form for instance view.
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): |
