Use sample data when generating subject for display in email profile settings.
This commit is contained in:
parent
09f3d1fe01
commit
717a614194
|
@ -65,12 +65,13 @@ class ProfilesView(MasterView):
|
||||||
recips = email.get_recips(type_)
|
recips = email.get_recips(type_)
|
||||||
if recips:
|
if recips:
|
||||||
return ', '.join(recips)
|
return ', '.join(recips)
|
||||||
|
data = email.sample_data(self.request)
|
||||||
return {
|
return {
|
||||||
'key': email.key,
|
'key': email.key,
|
||||||
'fallback_key': email.fallback_key,
|
'fallback_key': email.fallback_key,
|
||||||
'description': email.__doc__,
|
'description': email.__doc__,
|
||||||
'prefix': email.get_prefix(),
|
'prefix': email.get_prefix(data),
|
||||||
'subject': email.get_subject(),
|
'subject': email.get_subject(data),
|
||||||
'sender': email.get_sender(),
|
'sender': email.get_sender(),
|
||||||
'replyto': email.get_replyto(),
|
'replyto': email.get_replyto(),
|
||||||
'to': get_recips('to'),
|
'to': get_recips('to'),
|
||||||
|
|
Loading…
Reference in a new issue