Groups
Groups
Sign in
Groups
Groups
Django REST framework
Conversations
About
Send feedback
Help
DRF serializers.Serializer.errors must mimic Django forms.Form.errors
38 views
Skip to first unread message
edu...@coins.ph
unread,
Sep 21, 2016, 7:35:49 AM
9/21/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django REST framework
Starting from version 1.7, Django supports new API for validators and errors.
https://docs.djangoproject.com/en/1.8/ref/forms/validation/#raising-validationerror
https://docs.djangoproject.com/en/1.8/ref/forms/api/#django.forms.Form.errors.as_json
Client side developers could have a lot of benefits from error responses with error codes.
Tom Christie
unread,
Sep 21, 2016, 7:53:10 AM
9/21/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django REST framework
See also
https://github.com/tomchristie/django-rest-framework/pull/3775
Reply all
Reply to author
Forward
0 new messages