mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Added NON_FIELD_ERRORS_KEY to serializer docs. Closes #1971.
This commit is contained in:
parent
0da30e6d1d
commit
21d06a4103
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user