Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
883aedb5
Commit
883aedb5
authored
Aug 20, 2014
by
Ben McMorran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blank=True to rerun state display name
parent
3b6b4668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
common/djangoapps/course_action_state/migrations/0002_add_rerun_display_name.py
+1
-1
common/djangoapps/course_action_state/models.py
+1
-1
No files found.
common/djangoapps/course_action_state/migrations/0002_add_rerun_display_name.py
View file @
883aedb5
...
@@ -10,7 +10,7 @@ class Migration(SchemaMigration):
...
@@ -10,7 +10,7 @@ class Migration(SchemaMigration):
def
forwards
(
self
,
orm
):
def
forwards
(
self
,
orm
):
# Adding field 'CourseRerunState.display_name'
# Adding field 'CourseRerunState.display_name'
db
.
add_column
(
'course_action_state_coursererunstate'
,
'display_name'
,
db
.
add_column
(
'course_action_state_coursererunstate'
,
'display_name'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
default
=
''
,
max_length
=
255
),
self
.
gf
(
'django.db.models.fields.CharField'
)(
default
=
''
,
max_length
=
255
,
blank
=
True
),
keep_default
=
False
)
keep_default
=
False
)
...
...
common/djangoapps/course_action_state/models.py
View file @
883aedb5
...
@@ -110,7 +110,7 @@ class CourseRerunState(CourseActionUIState):
...
@@ -110,7 +110,7 @@ class CourseRerunState(CourseActionUIState):
source_course_key
=
CourseKeyField
(
max_length
=
255
,
db_index
=
True
)
source_course_key
=
CourseKeyField
(
max_length
=
255
,
db_index
=
True
)
# Display name for destination course
# Display name for destination course
display_name
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
display_name
=
models
.
CharField
(
max_length
=
255
,
default
=
""
,
blank
=
True
)
# MANAGERS
# MANAGERS
# Override the abstract class' manager with a Rerun-specific manager that inherits from the base class' manager.
# Override the abstract class' manager with a Rerun-specific manager that inherits from the base class' manager.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment