Skip to content

Commit

Permalink
moved QUEUE_ALL definition to when function is called
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Mar 17, 2011
1 parent 9d4f5a1 commit 3689e29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions notification/models.py
Expand Up @@ -16,9 +16,6 @@
from notification.message import encode_message


QUEUE_ALL = getattr(settings, "NOTIFICATION_QUEUE_ALL", False)


class LanguageStoreNotAvailable(Exception):
pass

Expand Down Expand Up @@ -206,6 +203,7 @@ def queue(users, label, extra_context=None, on_site=True, sender=None):
of user notifications to be deferred to a seperate process running outside
the webserver.
"""
QUEUE_ALL = getattr(settings, "NOTIFICATION_QUEUE_ALL", False)
if extra_context is None:
extra_context = {}
if isinstance(users, QuerySet):
Expand Down

0 comments on commit 3689e29

Please sign in to comment.