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_)
|
||||
if recips:
|
||||
return ', '.join(recips)
|
||||
data = email.sample_data(self.request)
|
||||
return {
|
||||
'key': email.key,
|
||||
'fallback_key': email.fallback_key,
|
||||
'description': email.__doc__,
|
||||
'prefix': email.get_prefix(),
|
||||
'subject': email.get_subject(),
|
||||
'prefix': email.get_prefix(data),
|
||||
'subject': email.get_subject(data),
|
||||
'sender': email.get_sender(),
|
||||
'replyto': email.get_replyto(),
|
||||
'to': get_recips('to'),
|
||||
|
|
Loading…
Reference in a new issue