diff options
| author | Tom Christie | 2014-11-03 15:03:10 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-11-03 15:03:10 +0000 | 
| commit | 21d06a4103d1966cd6e19f7cc6f3c6e450cc1680 (patch) | |
| tree | f75c93aff2ee28b5f5196d59b6ad3ecf53f68482 | |
| parent | 0da30e6d1dea68d7c075067dd997fb1e0e26f27b (diff) | |
| download | django-rest-framework-21d06a4103d1966cd6e19f7cc6f3c6e450cc1680.tar.bz2 | |
Added NON_FIELD_ERRORS_KEY to serializer docs. Closes #1971.
| -rw-r--r-- | docs/api-guide/settings.md | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/docs/api-guide/settings.md b/docs/api-guide/settings.md index 6a855c92..2144a2ed 100644 --- a/docs/api-guide/settings.md +++ b/docs/api-guide/settings.md @@ -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`. | 
