From 251fcaa586c54ddc1b15e11af15fea619b14b01f Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Thu, 15 Jul 2021 12:28:06 +0500 Subject: [PATCH] Django3 has removed python_2_unicode_compatible. Execute the codemodes on this file and removed all usage. --- cms/djangoapps/course_creators/models.py | 2 ++ cms/lib/xblock/tagging/models.py | 1 + openedx/core/djangoapps/api_admin/models.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/cms/djangoapps/course_creators/models.py b/cms/djangoapps/course_creators/models.py index 153801990d..dc8191202f 100644 --- a/cms/djangoapps/course_creators/models.py +++ b/cms/djangoapps/course_creators/models.py @@ -19,6 +19,8 @@ send_admin_notification = Signal(providing_args=["user"]) # A signal that will be sent when user should be notified of change in course creator privileges send_user_notification = Signal(providing_args=["user", "state"]) + + class CourseCreator(models.Model): """ Creates the database table model. diff --git a/cms/lib/xblock/tagging/models.py b/cms/lib/xblock/tagging/models.py index 7350b50984..1dd1fe2f11 100644 --- a/cms/lib/xblock/tagging/models.py +++ b/cms/lib/xblock/tagging/models.py @@ -5,6 +5,7 @@ Django Model for tags from django.db import models + class TagCategories(models.Model): """ This model represents tag categories. diff --git a/openedx/core/djangoapps/api_admin/models.py b/openedx/core/djangoapps/api_admin/models.py index 8e5b957b23..d6ed4ca41f 100644 --- a/openedx/core/djangoapps/api_admin/models.py +++ b/openedx/core/djangoapps/api_admin/models.py @@ -24,6 +24,8 @@ from common.djangoapps.edxmako.shortcuts import render_to_string from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers log = logging.getLogger(__name__) + + class ApiAccessRequest(TimeStampedModel): """ Model to track API access for a user.