diff --git a/openedx/features/termsofservice/api/v1/views.py b/openedx/features/termsofservice/api/v1/views.py index 9c1ab3c257cd..48f9daf34e48 100644 --- a/openedx/features/termsofservice/api/v1/views.py +++ b/openedx/features/termsofservice/api/v1/views.py @@ -2,12 +2,14 @@ from django.views.decorators.csrf import ensure_csrf_cookie from django.http import HttpResponse, JsonResponse -from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers + +from django.contrib.sites.models import Site from django.conf import settings +from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from openedx.features.termsofservice.models import TermsOfServiceSites, TermsOfService from openedx.features.termsofservice.models import TermsOfServiceAcknowledgement, TermsOfServiceAllSites -from django.contrib.sites.models import Site + @ensure_csrf_cookie diff --git a/openedx/features/termsofservice/views.py b/openedx/features/termsofservice/views.py index 28bd74cf6d7e..74ab0e07dc3b 100644 --- a/openedx/features/termsofservice/views.py +++ b/openedx/features/termsofservice/views.py @@ -1,11 +1,15 @@ # lint-amnesty, pylint: disable=missing-module-docstring - -from .models import TermsOfService, TermsOfServiceAllSites, TermsOfServiceSites +import logging from django.contrib.sites.models import Site from django.template.loader import render_to_string from django.conf import settings from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers -import logging +from .models import TermsOfService, TermsOfServiceAllSites, TermsOfServiceSites + + + + + logger = logging.getLogger(__name__)