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
e81a09e7
Commit
e81a09e7
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
f98b8e5b
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
common/djangoapps/student/models.py
+1
-14
1 addition, 14 deletions
common/djangoapps/student/models.py
with
1 addition
and
14 deletions
common/djangoapps/student/models.py
+
1
−
14
View file @
e81a09e7
...
...
@@ -38,7 +38,7 @@ from django.db.models import Count, Index, Q
from
django.db.models.signals
import
post_save
,
pre_save
from
django.db.utils
import
ProgrammingError
from
django.dispatch
import
receiver
from
django.utils.encoding
import
python_2_unicode_compatible
from
django.utils.functional
import
cached_property
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_noop
...
...
@@ -972,9 +972,6 @@ class PendingSecondaryEmailChange(DeletableByUserValue, models.Model):
EVENT_NAME_ENROLLMENT_ACTIVATED
=
'
edx.course.enrollment.activated
'
EVENT_NAME_ENROLLMENT_DEACTIVATED
=
'
edx.course.enrollment.deactivated
'
EVENT_NAME_ENROLLMENT_MODE_CHANGED
=
'
edx.course.enrollment.mode_changed
'
@python_2_unicode_compatible
class
LoginFailures
(
models
.
Model
):
"""
This model will keep track of failed login attempts.
...
...
@@ -1201,9 +1198,6 @@ class CourseEnrollmentManager(models.Manager):
# CourseEnrollment for a user in a course. This type
# is used to cache the state in the request cache.
CourseEnrollmentState
=
namedtuple
(
'
CourseEnrollmentState
'
,
'
mode, is_active
'
)
@python_2_unicode_compatible
class
CourseEnrollment
(
models
.
Model
):
"""
Represents a Student
'
s Enrollment record for a single Course. You should
...
...
@@ -2252,7 +2246,6 @@ class CourseEnrollment(models.Model):
)
@python_2_unicode_compatible
class
FBEEnrollmentExclusion
(
models
.
Model
):
"""
Disable FBE for enrollments in this table.
...
...
@@ -2369,7 +2362,6 @@ class ManualEnrollmentAudit(models.Model):
return
True
@python_2_unicode_compatible
class
CourseEnrollmentAllowed
(
DeletableByUserValue
,
models
.
Model
):
"""
Table of users (specified by email address strings) who are allowed to enroll in a specified course.
...
...
@@ -2430,7 +2422,6 @@ class CourseEnrollmentAllowed(DeletableByUserValue, models.Model):
@total_ordering
@python_2_unicode_compatible
class
CourseAccessRole
(
models
.
Model
):
"""
Maps users to org, courses, and roles. Used by student.roles.CourseRole and OrgRole.
...
...
@@ -2792,7 +2783,6 @@ class LinkedInAddToProfileConfiguration(ConfigurationModel):
return
{
'
organizationName
'
:
configuration_helpers
.
get_value
(
'
platform_name
'
,
settings
.
PLATFORM_NAME
)}
@python_2_unicode_compatible
class
EntranceExamConfiguration
(
models
.
Model
):
"""
Represents a Student
'
s entrance exam specific data for a single Course
...
...
@@ -2900,7 +2890,6 @@ class SocialLink(models.Model):
social_link
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
)
@python_2_unicode_compatible
class
CourseEnrollmentAttribute
(
models
.
Model
):
"""
Provide additional information about the user
'
s enrollment.
...
...
@@ -3008,7 +2997,6 @@ class EnrollmentRefundConfiguration(ConfigurationModel):
self
.
refund_window_microseconds
=
int
(
refund_window
.
total_seconds
()
*
1000000
)
@python_2_unicode_compatible
class
RegistrationCookieConfiguration
(
ConfigurationModel
):
"""
Configuration for registration cookies.
...
...
@@ -3057,7 +3045,6 @@ class BulkChangeEnrollmentConfiguration(ConfigurationModel):
)
@python_2_unicode_compatible
class
UserAttribute
(
TimeStampedModel
):
"""
Record additional metadata about a user, stored as key/value pairs of text.
...
...
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