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
29034df3
Commit
29034df3
authored
Sep 14, 2016
by
J. Cliff Dyer
Committed by
Nimisha Asthagiri
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VisibleBlocks migration: add course_id for bulk retrieval
parent
4dbbe513
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
lms/djangoapps/grades/migrations/0004_visibleblocks_course_id.py
+22
-0
No files found.
lms/djangoapps/grades/migrations/0004_visibleblocks_course_id.py
0 → 100644
View file @
29034df3
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
from
opaque_keys.edx.keys
import
CourseKey
import
xmodule_django.models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'grades'
,
'0003_coursepersistentgradesflag_persistentgradesenabledflag'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'visibleblocks'
,
name
=
'course_id'
,
field
=
xmodule_django
.
models
.
CourseKeyField
(
default
=
CourseKey
.
from_string
(
'edX/BerylMonkeys/TNL-5458'
),
max_length
=
255
,
db_index
=
True
),
preserve_default
=
False
,
),
]
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