Notification emails are no longer sent to inactive users. Fixes #90

pull/91/head
Karl Hobley 2014-02-24 10:03:00 +00:00
rodzic b78829acc3
commit 50b4f7de44
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ def users_with_page_permission(page, permission_type, include_superusers=True):
if include_superusers: if include_superusers:
q |= Q(is_superuser=True) q |= Q(is_superuser=True)
return User.objects.filter(q).distinct() return User.objects.filter(is_active=True).filter(q).distinct()
@task @task