Support Django 2.1

This commit is contained in:
Griatch 2019-03-25 23:36:38 +01:00
parent fbfb6da975
commit a1f7fd3081
4 changed files with 6 additions and 5 deletions

View file

@ -10,11 +10,12 @@ class CaseInsensitiveModelBackend(ModelBackend):
"""
def authenticate(self, username=None, password=None, autologin=None):
def authenticate(self, request, username=None, password=None, autologin=None):
"""
Custom authenticate with bypass for auto-logins
Args:
request (Request): Request object.
username (str, optional): Name of user to authenticate.
password (str, optional): Password of user
autologin (Account, optional): If given, assume this is