UPD: removed obsolete comments.
This commit is contained in:
@@ -14,13 +14,11 @@ class AbstractMail(object):
|
|||||||
_template_name = None
|
_template_name = None
|
||||||
|
|
||||||
def _get_sender(self):
|
def _get_sender(self):
|
||||||
#app_config = apps.get_containing_app_config(__package__)
|
|
||||||
return app_config.settings.email_sender
|
return app_config.settings.email_sender
|
||||||
|
|
||||||
def _get_subject(self, subject_fmt=None, **kwargs):
|
def _get_subject(self, subject_fmt=None, **kwargs):
|
||||||
if subject_fmt is None:
|
if subject_fmt is None:
|
||||||
subject_fmt = self._subject
|
subject_fmt = self._subject
|
||||||
#app_config = apps.get_containing_app_config(__package__)
|
|
||||||
if app_config.settings.email_subject_prefix:
|
if app_config.settings.email_subject_prefix:
|
||||||
subject_fmt = u'%s %s' % (app_config.settings.email_subject_prefix, subject_fmt)
|
subject_fmt = u'%s %s' % (app_config.settings.email_subject_prefix, subject_fmt)
|
||||||
subject = subject_fmt.format(**kwargs)
|
subject = subject_fmt.format(**kwargs)
|
||||||
@@ -32,7 +30,6 @@ class AbstractMail(object):
|
|||||||
return get_template(self._template_name, using='PLAINTEXT')
|
return get_template(self._template_name, using='PLAINTEXT')
|
||||||
|
|
||||||
def _get_context_data(self, extra_context=None):
|
def _get_context_data(self, extra_context=None):
|
||||||
#app_config = apps.get_containing_app_config(__package__)
|
|
||||||
context = {
|
context = {
|
||||||
'base_url': app_config.settings.email_base_url,
|
'base_url': app_config.settings.email_base_url,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user