django-utils

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

commit
954fc05f94f4b1ae0f4a10c183cceaa0f7f0350c
parent
30d41ada90cc4dc442661086f2d529537fb22357
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-10-29 21:40
rm unused group.has_perm

Diffstat

M utils/context_groups.py 3 ---

1 files changed, 0 insertions, 3 deletions


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

@@ -27,9 +27,6 @@ class ContextGroup(models.Model):
   27    27         )
   28    28         return ['{}.{}'.format(ct, name) for ct, name in perms]
   29    29 
   30    -1     def has_perm(self, perm):
   31    -1         return perm in self.get_permissions()
   32    -1 
   33    30 
   34    31 class BaseBackend:
   35    32     def authenticate(self, username, password):