diff --git a/apps/perms/models/base.py b/apps/perms/models/base.py index b36d009b3..878d9d739 100644 --- a/apps/perms/models/base.py +++ b/apps/perms/models/base.py @@ -29,7 +29,7 @@ class BasePermissionQuerySet(models.QuerySet): return self.filter(is_active=False) def invalid(self): - now = timezone.now + now = timezone.now() q = ( Q(is_active=False) | Q(date_start__gt=now) |