Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #721 from akatsoulas/voting-update-subject
Browse files Browse the repository at this point in the history
[bug 997891] Update email subject.
  • Loading branch information
akatsoulas committed Apr 23, 2014
2 parents 6340b80 + 15e7706 commit 1fba1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion remo/voting/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def automated_poll_discussion_email(sender, instance, created, raw, **kwargs):
"""Send email reminders when a vote starts/ends."""
if instance.automated_poll and created:
template = 'emails/review_budget_notify_council.txt'
subject = '[Bug %d] - %s' % (instance.bug.bug_id, instance.bug.summary)
subject = ('Discuss [Bug %d] - %s'
% (instance.bug.bug_id, instance.bug.summary))
data = {'bug': instance.bug,
'BUGZILLA_URL': BUGZILLA_URL}
send_remo_mail.delay(
Expand Down
2 changes: 1 addition & 1 deletion remo/voting/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_send_discussion_email_to_council(self):
with patch('remo.voting.models.send_remo_mail') as mocked_send_mail:
automated_poll_discussion_email(None, automated_poll, True, {})

subject = '[Bug 989812] - Bug summary'
subject = 'Discuss [Bug 989812] - Bug summary'
data = {'bug': bug, 'BUGZILLA_URL': BUGZILLA_URL}
headers = {'Reply-To': settings.REPS_COUNCIL_ALIAS}
mocked_send_mail.delay.assert_called_once_with(
Expand Down

0 comments on commit 1fba1ab

Please sign in to comment.