django-utils

personal collection of django utilities
git clone https://git.ce9e.org/django-utils.git

commit
ff5835bb7f4a057cfcbd68533dfda66fd51a6e0e
parent
8b2b7e3406add5207b9f9bf2d6424b7276ad8423
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-11-10 09:12
fix required methods on auth backend

Diffstat

M utils/context_groups.py 5 ++++-

1 files changed, 4 insertions, 1 deletions


diff --git a/utils/context_groups.py b/utils/context_groups.py

@@ -29,7 +29,10 @@ class ContextGroup(models.Model):
   29    29 
   30    30 
   31    31 class BaseBackend:
   32    -1     def authenticate(self, username, password):
   -1    32     def authenticate(self, request, **kwargs):
   -1    33         return None
   -1    34 
   -1    35     def get_user(self, user_id):
   33    36         return None
   34    37 
   35    38     def get_group_permissions(self, user, obj=None):