mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
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:
parent
21a9740156
commit
cc25f57f7b
|
@ -202,6 +202,8 @@ Default: `'version'`
|
|||
#### UNAUTHENTICATED_USER
|
||||
|
||||
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`
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user