Browse files

moved QUEUE_ALL definition to when function is called

  • Loading branch information...
1 parent 9d4f5a1 commit 3689e296830174dbd09a1aa9ab6671453be6c3a1 @brosner brosner committed Mar 17, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 notification/models.py
View
4 notification/models.py
@@ -16,9 +16,6 @@
from notification.message import encode_message
-QUEUE_ALL = getattr(settings, "NOTIFICATION_QUEUE_ALL", False)
-
-
class LanguageStoreNotAvailable(Exception):
pass
@@ -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):

0 comments on commit 3689e29

Please sign in to comment.