Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
fa2466f4
Commit
fa2466f4
authored
Feb 21, 2018
by
asadazam93
Committed by
AsadAzam
Feb 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish button to order seats
parent
e4230fbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
course_discovery/apps/course_metadata/admin.py
+5
-0
course_discovery/apps/publisher/api/v1/views.py
+1
-1
No files found.
course_discovery/apps/course_metadata/admin.py
View file @
fa2466f4
...
...
@@ -183,6 +183,11 @@ class ProgramTypeAdmin(admin.ModelAdmin):
list_display
=
(
'name'
,
'slug'
,)
@admin.register
(
Seat
)
class
SeatAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'course_run'
,
'type'
)
@admin.register
(
SeatType
)
class
SeatTypeAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'name'
,
'slug'
,)
...
...
course_discovery/apps/publisher/api/v1/views.py
View file @
fa2466f4
...
...
@@ -165,7 +165,7 @@ class CourseRunViewSet(viewsets.GenericViewSet):
}
)
for
seat
in
course_run
.
seats
.
exclude
(
type
=
Seat
.
CREDIT
):
for
seat
in
course_run
.
seats
.
exclude
(
type
=
Seat
.
CREDIT
)
.
order_by
(
'created'
)
:
DiscoverySeat
.
objects
.
update_or_create
(
course_run
=
discovery_course_run
,
type
=
seat
.
type
,
...
...
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