Basic email template for notifications #96

Merged
Anna Sirota merged 14 commits from notification-templates into main 2024-05-02 14:04:24 +02:00
Showing only changes of commit 4c34bbee0d - Show all commits

View File

@ -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]