Basic email template for notifications #96
@ -94,7 +94,7 @@ class EmailPreviewAdmin(NoAddDeleteMixin, EmailAdmin):
|
||||
return f'Sent a test email "{obj.subject}" to {obj.to} from {obj.from_email}'
|
||||
|
||||
def get_object(self, request, object_id, from_field=None, fake_context=None):
|
||||
"""Construct the Email on th fly from known email templates."""
|
||||
"""Construct the Email on the fly from known email templates."""
|
||||
if not fake_context:
|
||||
fake_context = self._get_fake_context(request)
|
||||
context = fake_context[object_id]
|
||||
|
Loading…
Reference in New Issue
Block a user