diff options
| author | Tom Christie | 2012-09-05 20:10:06 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-05 20:10:06 +0100 | 
| commit | 3a106aed7958d8a3a31e39415e4b2a5514a41fa1 (patch) | |
| tree | daa8f4a40f5cdad6c5cf9897dcc10ce457878c65 /docs/api-guide/settings.md | |
| parent | 15482f443ad07a2fe4a84dad0edbdbf74536164e (diff) | |
| download | django-rest-framework-3a106aed7958d8a3a31e39415e4b2a5514a41fa1.tar.bz2 | |
Flesh out authentication docs
Diffstat (limited to 'docs/api-guide/settings.md')
| -rw-r--r-- | docs/api-guide/settings.md | 28 | 
1 files changed, 22 insertions, 6 deletions
| diff --git a/docs/api-guide/settings.md b/docs/api-guide/settings.md index af8c4ec9..7ade76b0 100644 --- a/docs/api-guide/settings.md +++ b/docs/api-guide/settings.md @@ -70,24 +70,40 @@ Default: `djangorestframework.pagination.PaginationSerializer`  ## FORMAT_SUFFIX_KWARG -Default: `format` +Default: `'format'` -## UNAUTHENTICATED_USER_CLASS +## UNAUTHENTICATED_USER + +The class that should be used to initialize `request.user` for unauthenticated requests.  Default: `django.contrib.auth.models.AnonymousUser` +## UNAUTHENTICATED_USER + +The class that should be used to initialize `request.auth` for unauthenticated requests. + +Default: `None` +  ## FORM_METHOD_OVERRIDE -Default: `_method` +The name of a form field that may be used to override the HTTP method of the form. + +Default: `'_method'`  ## FORM_CONTENT_OVERRIDE -Default: `_content` +The name of a form field that may be used to override the content of the form payload. + +Default: `'_content'`  ## FORM_CONTENTTYPE_OVERRIDE -Default: `_content_type` +The name of a form field that may be used to override the content type of the form payload. + +Default: `'_content_type'`  ## URL_ACCEPT_OVERRIDE -Default: `_accept` +The name of a URL parameter that may be used to override the HTTP `Accept` header. + +Default: `'_accept'` | 
