summaryrefslogtreecommitdiffstats
path: root/askbot/tasks.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-08 20:36:47 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-08 20:36:47 -0300
commit89644df19bb0050fe65dd0ae41c423ebc2697cea (patch)
tree9a5da7d474879b77116913b733d44d685ed9dd7a /askbot/tasks.py
parentda2842d7703e6ef82dbcedaaa96de3e53a01695f (diff)
downloadaskbot-89644df19bb0050fe65dd0ae41c423ebc2697cea.tar.gz
askbot-89644df19bb0050fe65dd0ae41c423ebc2697cea.tar.bz2
askbot-89644df19bb0050fe65dd0ae41c423ebc2697cea.zip
minor edit option for question and answer to suppress email alerts
Diffstat (limited to 'askbot/tasks.py')
-rw-r--r--askbot/tasks.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/askbot/tasks.py b/askbot/tasks.py
index 5df24a4c..92cd9a1d 100644
--- a/askbot/tasks.py
+++ b/askbot/tasks.py
@@ -98,11 +98,12 @@ def notify_author_of_published_revision_celery_task(revision):
def record_post_update_celery_task(
post_id,
post_content_type_id,
- newly_mentioned_user_id_list = None,
- updated_by_id = None,
- timestamp = None,
- created = False,
- diff = None,
+ newly_mentioned_user_id_list=None,
+ updated_by_id=None,
+ suppress_email=False,
+ timestamp=None,
+ created=False,
+ diff=None,
):
#reconstitute objects from the database
updated_by = User.objects.get(id=updated_by_id)
@@ -124,6 +125,7 @@ def record_post_update_celery_task(
updated_by=updated_by,
notify_sets=notify_sets,
activity_type=activity_type,
+ suppress_email=suppress_email,
timestamp=timestamp,
diff=diff
)