Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
11fe3963
Commit
11fe3963
authored
5 years ago
by
aarif
Browse files
Options
Downloads
Patches
Plain Diff
python 3 fixes
parent
6d5ea3b7
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/user_api/models.py
+5
-2
5 additions, 2 deletions
openedx/core/djangoapps/user_api/models.py
with
5 additions
and
2 deletions
openedx/core/djangoapps/user_api/models.py
+
5
−
2
View file @
11fe3963
...
...
@@ -8,6 +8,7 @@ from django.core.validators import RegexValidator
from
django.db
import
models
from
django.db.models.signals
import
post_delete
,
post_save
,
pre_save
from
django.dispatch
import
receiver
from
django.utils.encoding
import
python_2_unicode_compatible
from
model_utils.models
import
TimeStampedModel
from
opaque_keys.edx.django.models
import
CourseKeyField
...
...
@@ -149,6 +150,7 @@ class UserOrgTag(TimeStampedModel, DeletableByUserValue): # pylint: disable=mod
unique_together
=
(
"
user
"
,
"
org
"
,
"
key
"
)
@python_2_unicode_compatible
class
RetirementState
(
models
.
Model
):
"""
Stores the list and ordering of the steps of retirement, this should almost never change
...
...
@@ -161,8 +163,9 @@ class RetirementState(models.Model):
is_dead_end_state
=
models
.
BooleanField
(
default
=
False
,
db_index
=
True
)
required
=
models
.
BooleanField
(
default
=
False
)
def
__unicode__
(
self
):
return
u
'
{} (step {})
'
.
format
(
self
.
state_name
,
self
.
state_execution_order
)
def
__str__
(
self
):
# pylint: disable=unicode-format-string
return
'
{} (step {})
'
.
format
(
self
.
state_name
,
self
.
state_execution_order
)
class
Meta
(
object
):
ordering
=
(
'
state_execution_order
'
,)
...
...
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