Skip to content
Snippets Groups Projects
Commit 6dc67773 authored by Awais Qureshi's avatar Awais Qureshi
Browse files

Django3 has removed python_2_unicode_compatible.

Execute the codemodes on this file and removed all usage.
parent 0433af53
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ from django.conf import settings
from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.encoding import python_2_unicode_compatible # lint-amnesty, pylint: disable=no-name-in-module
# lint-amnesty, pylint: disable=no-name-in-module
from django.utils.translation import ugettext_lazy as _
from jsonfield import JSONField
from lazy import lazy # lint-amnesty, pylint: disable=no-name-in-module
......@@ -48,7 +48,6 @@ class CourseBadgesDisabledError(Exception):
"""
@python_2_unicode_compatible
class BadgeClass(models.Model):
"""
Specifies a badge class to be registered with a backend.
......@@ -146,7 +145,6 @@ class BadgeClass(models.Model):
verbose_name_plural = "Badge Classes"
@python_2_unicode_compatible
class BadgeAssertion(TimeStampedModel):
"""
Tracks badges on our side of the badge baking transaction
......@@ -182,9 +180,6 @@ class BadgeAssertion(TimeStampedModel):
# Abstract model doesn't index this, so we have to.
BadgeAssertion._meta.get_field('created').db_index = True
@python_2_unicode_compatible
class CourseCompleteImageConfiguration(models.Model):
"""
Contains the icon configuration for badges for a specific course mode.
......@@ -240,7 +235,6 @@ class CourseCompleteImageConfiguration(models.Model):
app_label = "badges"
@python_2_unicode_compatible
class CourseEventBadgesConfiguration(ConfigurationModel):
"""
Determines the settings for meta course awards-- such as completing a certain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment