Support Django 2.1
This commit is contained in:
parent
fbfb6da975
commit
a1f7fd3081
4 changed files with 6 additions and 5 deletions
|
|
@ -91,8 +91,8 @@ SRESET = chr(19) # shutdown server in reset mode
|
||||||
# requirements
|
# requirements
|
||||||
PYTHON_MIN = '3.7'
|
PYTHON_MIN = '3.7'
|
||||||
TWISTED_MIN = '18.0.0'
|
TWISTED_MIN = '18.0.0'
|
||||||
DJANGO_MIN = '1.11'
|
DJANGO_MIN = '2.1'
|
||||||
DJANGO_REC = '2.0'
|
DJANGO_REC = '2.1'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path[1] = EVENNIA_ROOT
|
sys.path[1] = EVENNIA_ROOT
|
||||||
|
|
|
||||||
|
|
@ -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
|
Custom authenticate with bypass for auto-logins
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
request (Request): Request object.
|
||||||
username (str, optional): Name of user to authenticate.
|
username (str, optional): Name of user to authenticate.
|
||||||
password (str, optional): Password of user
|
password (str, optional): Password of user
|
||||||
autologin (Account, optional): If given, assume this is
|
autologin (Account, optional): If given, assume this is
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Evennia dependencies, for Linux/Mac platforms
|
# Evennia dependencies, for Linux/Mac platforms
|
||||||
|
|
||||||
# general
|
# general
|
||||||
django >= 2.0, < 2.1
|
django >= 2.1, < 2.2
|
||||||
twisted >= 18.0.0, < 19.0.0
|
twisted >= 18.0.0, < 19.0.0
|
||||||
pillow == 5.2.0
|
pillow == 5.2.0
|
||||||
pytz
|
pytz
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
pypiwin32
|
pypiwin32
|
||||||
|
|
||||||
# general
|
# general
|
||||||
django > 1.11, < 2.0
|
django >= 2.1, < 2.2
|
||||||
twisted >= 18.0.0, < 19.0.0
|
twisted >= 18.0.0, < 19.0.0
|
||||||
pillow == 5.2.0
|
pillow == 5.2.0
|
||||||
pytz
|
pytz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue