mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #20673 -- Clarified that HttpRequest.user uses AUTH_USER_MODEL.
Thanks littlepig for the report.
This commit is contained in:
@@ -5,7 +5,7 @@ from django.contrib.auth.models import Permission
|
||||
|
||||
class ModelBackend(object):
|
||||
"""
|
||||
Authenticates against django.contrib.auth.models.User.
|
||||
Authenticates against settings.AUTH_USER_MODEL.
|
||||
"""
|
||||
|
||||
def authenticate(self, username=None, password=None, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user