diff --git a/common/djangoapps/student/views/management.py b/common/djangoapps/student/views/management.py index 9044018684..7e9767b5e1 100644 --- a/common/djangoapps/student/views/management.py +++ b/common/djangoapps/student/views/management.py @@ -125,8 +125,8 @@ def csrf_token(context): token = context.get('csrf_token', '') if token == 'NOTPROVIDED': return '' - return (u'
'.format(token)) + return (HTML(u'
').format(token)) # NOTE: This view is not linked to directly--it is called from diff --git a/openedx/features/content_type_gating/tests/test_access.py b/openedx/features/content_type_gating/tests/test_access.py index 65681c9c30..e923e36e41 100644 --- a/openedx/features/content_type_gating/tests/test_access.py +++ b/openedx/features/content_type_gating/tests/test_access.py @@ -666,7 +666,7 @@ class TestMessageDeduplication(ModuleStoreTestCase): self.user = UserFactory.create() self.request_factory = RequestFactory() - ContentTypeGatingConfig.objects.create(enabled=True, enabled_as_of=date(2018, 1, 1)) + ContentTypeGatingConfig.objects.create(enabled=True, enabled_as_of=datetime(2018, 1, 1)) def _create_course(self): course = CourseFactory.create(run='test', display_name='test')