Post Web Assets v2 upgrade UI fixes and improvements #114

Merged
Márton Lente merged 35 commits from martonlente/extensions-website:ui/issue105 into main 2024-05-07 16:33:28 +02:00
Showing only changes of commit 3d239ab426 - Show all commits

View File

@ -10,7 +10,6 @@ import django.core.mail
from emails.models import Email
from emails.util import construct_email
from common.tests.factories.notifications import construct_fake_notifications
logger = logging.getLogger(__name__)
User = get_user_model()
@ -112,6 +111,9 @@ class EmailPreviewAdmin(NoAddDeleteMixin, EmailAdmin):
def _get_emails_with_fake_context(self, request):
email_with_fake_context = {'feedback': {}}
if settings.DEBUG:
from common.tests.factories.notifications import construct_fake_notifications
fake_notifications = construct_fake_notifications()
for fake_notification in fake_notifications:
mail_name = fake_notification.original_template_name