UPD: dav_registration: merged suggestions from test users about emails.
This commit is contained in:
@@ -34,9 +34,13 @@ class AbstractRegistrationMail(AbstractMail):
|
||||
|
||||
|
||||
class InformTrainerRegistrationMail(AbstractRegistrationMail):
|
||||
_subject = u'Anmeldung'
|
||||
_subject = u'Anmeldung {full_name}'
|
||||
_template_name = 'dav_registration/emails/inform_trainer.txt'
|
||||
|
||||
def _get_subject(self, subject_fmt=None, **kwargs):
|
||||
kwargs['full_name'] = self._registration.get_full_name()
|
||||
return super(InformTrainerRegistrationMail, self)._get_subject(subject_fmt=subject_fmt, **kwargs)
|
||||
|
||||
def _get_reply_to(self):
|
||||
s = u'"{fullname}" <{email}>'.format(fullname=self._registration.get_full_name(),
|
||||
email=self._registration.email_address)
|
||||
|
||||
Reference in New Issue
Block a user