fix malformed template variable
This commit is contained in:
@@ -302,6 +302,8 @@ class TestUpgradeReminder(FilteredQueryCountMixin, CacheIsolationTestCase):
|
||||
for (_name, (_msg, email), _kwargs) in mock_channel.deliver.mock_calls:
|
||||
for template in attr.astuple(email):
|
||||
self.assertNotIn("TEMPLATE WARNING", template)
|
||||
self.assertNotIn("{{", template)
|
||||
self.assertNotIn("}}", template)
|
||||
|
||||
def _get_template_overrides(self):
|
||||
templates_override = deepcopy(settings.TEMPLATES)
|
||||
|
||||
@@ -34,14 +34,14 @@
|
||||
{% if course_ids|length > 1 %}
|
||||
{% blocktrans trimmed %}
|
||||
We hope you are enjoying learning with us so far on <strong>{{ platform_name }}</strong>! A
|
||||
verified certificate allows you to highlight your new knowledge and skills. An {{ platform_name
|
||||
}} certificate is official and easily shareable.
|
||||
verified certificate allows you to highlight your new knowledge and skills. An
|
||||
{{ platform_name }} certificate is official and easily shareable.
|
||||
{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans trimmed %}
|
||||
We hope you are enjoying learning with us so far in <strong>{{ first_course_name }}</strong>! A
|
||||
verified certificate allows you to highlight your new knowledge and skills. An {{ platform_name
|
||||
}} certificate is official and easily shareable.
|
||||
verified certificate allows you to highlight your new knowledge and skills. An
|
||||
{{ platform_name }} certificate is official and easily shareable.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user