Implement Web Assets' theme system and selection, and add 'light' theme #118
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user