Resolve support for Django 2.0
This commit is contained in:
parent
f9354d9aeb
commit
fbfb6da975
32 changed files with 132 additions and 131 deletions
|
|
@ -39,7 +39,7 @@ class SharedLoginMiddleware(object):
|
|||
# this is necessary to build the sessid key
|
||||
csession.save()
|
||||
|
||||
if account.is_authenticated():
|
||||
if account.is_authenticated:
|
||||
# Logged into website
|
||||
if not website_uid:
|
||||
# fresh website login (just from login page)
|
||||
|
|
@ -58,4 +58,4 @@ class SharedLoginMiddleware(object):
|
|||
authenticate(autologin=account)
|
||||
login(request, account)
|
||||
except AttributeError:
|
||||
logger.log_trace()
|
||||
logger.log_trace()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue