Add UNAUTHENTICATED_USER = None note (#5679)

When removing authentication entirely you cannot import `django.contrib.auth.models.AnonymousUser`

Closes #3494
This commit is contained in:
Carlton Gibson 2017-12-19 10:31:20 +01:00 committed by GitHub
parent 21a9740156
commit cc25f57f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,8 @@ Default: `'version'`
#### UNAUTHENTICATED_USER #### UNAUTHENTICATED_USER
The class that should be used to initialize `request.user` for unauthenticated requests. The class that should be used to initialize `request.user` for unauthenticated requests.
(If removing authentication entirely, e.g. by removing `django.contrib.auth` from
`INSTALLED_APPS`, set `UNAUTHENTICATED_USER` to `None`.)
Default: `django.contrib.auth.models.AnonymousUser` Default: `django.contrib.auth.models.AnonymousUser`