Skip to content

Commit

Permalink
Provide context to function call of sending email inside 'inform_mode…
Browse files Browse the repository at this point in the history
…rator' function (#181)
  • Loading branch information
Dmytro Litvinov authored and dominno committed Nov 19, 2019
1 parent 00914d1 commit 6abc7c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions moderation/moderator.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ def send_many(self, queryset, subject_template, message_template,
multiple_backend = self.get_multiple_message_backend()
multiple_backend.send(datatuples)

def inform_moderator(self,
content_object,
extra_context=None):
def inform_moderator(self, content_object, extra_context=None):
'''Send notification to moderator'''
from .conf.settings import MODERATORS

Expand All @@ -185,7 +183,8 @@ def inform_moderator(self,
content_object=content_object,
subject_template=self.subject_template_moderator,
message_template=self.message_template_moderator,
recipient_list=MODERATORS)
recipient_list=MODERATORS,
extra_context=extra_context)

def inform_user(self, content_object,
user,
Expand Down

0 comments on commit 6abc7c6

Please sign in to comment.