Added NON_FIELD_ERRORS_KEY to serializer docs. Closes #1971.

This commit is contained in:
Tom Christie 2014-11-03 15:03:10 +00:00
parent 0da30e6d1d
commit 21d06a4103

View File

@ -399,6 +399,12 @@ This should be a function with the following signature:
Default: `'rest_framework.views.exception_handler'`
#### NON_FIELD_ERRORS_KEY
A string representing the key that should be used for serializer errors that do not refer to a specific field, but are instead general errors.
Default: `'non_field_errors'`
#### URL_FIELD_NAME
A string representing the key that should be used for the URL fields generated by `HyperlinkedModelSerializer`.