mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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
|
||||
PYTHON_MIN = '3.7'
|
||||
TWISTED_MIN = '18.0.0'
|
||||
DJANGO_MIN = '1.11'
|
||||
DJANGO_REC = '2.0'
|
||||
DJANGO_MIN = '2.1'
|
||||
DJANGO_REC = '2.1'
|
||||
|
||||
try:
|
||||
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
|
||||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Evennia dependencies, for Linux/Mac platforms
|
||||
|
||||
# general
|
||||
django >= 2.0, < 2.1
|
||||
django >= 2.1, < 2.2
|
||||
twisted >= 18.0.0, < 19.0.0
|
||||
pillow == 5.2.0
|
||||
pytz
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
pypiwin32
|
||||
|
||||
# general
|
||||
django > 1.11, < 2.0
|
||||
django >= 2.1, < 2.2
|
||||
twisted >= 18.0.0, < 19.0.0
|
||||
pillow == 5.2.0
|
||||
pytz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue