aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2014-11-03 15:03:10 +0000
committerTom Christie2014-11-03 15:03:10 +0000
commit21d06a4103d1966cd6e19f7cc6f3c6e450cc1680 (patch)
treef75c93aff2ee28b5f5196d59b6ad3ecf53f68482
parent0da30e6d1dea68d7c075067dd997fb1e0e26f27b (diff)
downloaddjango-rest-framework-21d06a4103d1966cd6e19f7cc6f3c6e450cc1680.tar.bz2
Added NON_FIELD_ERRORS_KEY to serializer docs. Closes #1971.
-rw-r--r--docs/api-guide/settings.md6
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`.