Commit 21d06a41 by Tom Christie

Added NON_FIELD_ERRORS_KEY to serializer docs. Closes #1971.

parent 0da30e6d
...@@ -399,6 +399,12 @@ This should be a function with the following signature: ...@@ -399,6 +399,12 @@ This should be a function with the following signature:
Default: `'rest_framework.views.exception_handler'` 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 #### URL_FIELD_NAME
A string representing the key that should be used for the URL fields generated by `HyperlinkedModelSerializer`. A string representing the key that should be used for the URL fields generated by `HyperlinkedModelSerializer`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment