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
4fa993ac
Commit
4fa993ac
authored
May 05, 2017
by
muzaffaryousaf
Committed by
Qubad786
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-create image set for course overview.
EDU-218
parent
3c0e0206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
openedx/core/djangoapps/content/course_overviews/models.py
+2
-0
No files found.
openedx/core/djangoapps/content/course_overviews/models.py
View file @
4fa993ac
...
...
@@ -220,6 +220,8 @@ class CourseOverview(TimeStampedModel):
course_overview
.
save
()
# Remove and recreate all the course tabs
CourseOverviewTab
.
objects
.
filter
(
course_overview
=
course_overview
)
.
delete
()
# Remove and recreate course images
CourseOverviewImageSet
.
objects
.
filter
(
course_overview
=
course_overview
)
.
delete
()
CourseOverviewTab
.
objects
.
bulk_create
([
CourseOverviewTab
(
tab_id
=
tab
.
tab_id
,
course_overview
=
course_overview
)
for
tab
in
course
.
tabs
...
...
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