From a28eb818be5e944637f1d9af25d0d27da948d1a3 Mon Sep 17 00:00:00 2001 From: Saleem Latif Date: Thu, 6 Dec 2018 21:51:04 +0500 Subject: [PATCH] Fixed quality and a typo --- common/djangoapps/student/views/management.py | 4 ++-- openedx/features/content_type_gating/tests/test_access.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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')