Add unknown event translation

This commit is contained in:
2016-10-25 21:53:40 +02:00
parent bafa9ac10c
commit 677c50a4b1
3 changed files with 61 additions and 58 deletions

View File

@ -301,7 +301,7 @@ class Selling(models.Model):
super(Selling, self).delete(*args, **kwargs)
def send_mail_customer(self):
event = self.product.eticket.event_title
event = self.product.eticket.event_title or _("Unknown event")
subject = _('Eticket bought for the event %(event)s') % {'event': event}
message_html = _(
"You bought an eticket for the event %(event)s.\nYou can download it on this page %(url)s."