Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
6dc67773
Commit
6dc67773
authored
3 years ago
by
Awais Qureshi
Browse files
Options
Downloads
Patches
Plain Diff
Django3 has removed python_2_unicode_compatible.
Execute the codemodes on this file and removed all usage.
parent
0433af53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/badges/models.py
+1
-7
1 addition, 7 deletions
lms/djangoapps/badges/models.py
with
1 addition
and
7 deletions
lms/djangoapps/badges/models.py
+
1
−
7
View file @
6dc67773
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment