Update StateBackend.authenticate to match ModelBackend

Also, change setup to no longer include Django 1.11
This commit is contained in:
colcrunch
2019-03-12 10:05:05 +00:00
committed by Basraah
parent e9ed917888
commit 287da73a4f
4 changed files with 3 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ class StateBackend(ModelBackend):
user_obj._perm_cache.update(self.get_state_permissions(user_obj))
return user_obj._perm_cache
def authenticate(self, token=None):
def authenticate(self, request=None, token=None, **credentials):
if not token:
return None
try: