Navigation Menu

Skip to content

Commit

Permalink
fix calling of send_email_template with subject
Browse files Browse the repository at this point in the history
  • Loading branch information
simodalla committed Mar 10, 2014
1 parent 6b0c3d0 commit 57389c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nowait/models.py
Expand Up @@ -19,7 +19,7 @@

from mezzanine.core.fields import RichTextField
from mezzanine.pages.models import Displayable, Link
from mezzanine.utils.email import send_mail_template
from mezzanine.utils.email import send_mail_template, subject_template

from model_utils import Choices
from model_utils.models import TimeStampedModel, StatusField
Expand Down Expand Up @@ -299,6 +299,8 @@ def send_emails_on_creation(self, request):
self.slottime.booking_type.get_notification_email())]:
try:
send_mail_template(
subject_template(
'nowait/email/subject/{}.txt'.format(template), None),
'nowait/email/{}'.format(template), settings.SERVER_EMAIL,
addr_to, context={'booking': self,
'request': request})
Expand Down

0 comments on commit 57389c9

Please sign in to comment.