Skip to content

Commit

Permalink
Remove unnecessary variable in email_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyFoote committed Aug 20, 2014
1 parent 225c688 commit 1f8a4ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions user_management/models/mixins.py
Expand Up @@ -117,14 +117,13 @@ def email_context(self, site):

def email_kwargs(self, context, domain):
"""Prepare the kwargs to be passed to incuna_mail.send"""
kwargs = {
return {
'to': [self.email],
'template_name': self.TEXT_EMAIL_TEMPLATE,
'html_template_name': self.HTML_EMAIL_TEMPLATE,
'subject': self.get_email_subject(domain),
'context': context,
}
return kwargs

def get_email_subject(self, domain):
return _(self.EMAIL_SUBJECT).format(domain=domain)
Expand Down

0 comments on commit 1f8a4ac

Please sign in to comment.