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
0ab5d420
Commit
0ab5d420
authored
Feb 13, 2017
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register CourseState and CourseRunState in django admin.
parent
5f73e3c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
course_discovery/apps/publisher/admin.py
+5
-3
No files found.
course_discovery/apps/publisher/admin.py
View file @
0ab5d420
...
@@ -2,14 +2,16 @@ from django.contrib import admin
...
@@ -2,14 +2,16 @@ from django.contrib import admin
from
guardian.admin
import
GuardedModelAdmin
from
guardian.admin
import
GuardedModelAdmin
from
course_discovery.apps.publisher.forms
import
CourseUserRoleForm
,
OrganizationUserRoleForm
,
UserAttributesAdminForm
from
course_discovery.apps.publisher.forms
import
CourseUserRoleForm
,
OrganizationUserRoleForm
,
UserAttributesAdminForm
from
course_discovery.apps.publisher.models
import
(
from
course_discovery.apps.publisher.models
import
(
Course
,
CourseRun
,
CourseRunState
,
CourseState
,
CourseUserRole
,
Course
,
CourseRun
,
CourseUserRole
,
OrganizationExtension
,
OrganizationUserRole
,
Seat
,
State
,
UserAttributes
OrganizationExtension
,
OrganizationUserRole
,
Seat
,
State
,
)
UserAttributes
)
admin
.
site
.
register
(
Course
)
admin
.
site
.
register
(
Course
)
admin
.
site
.
register
(
CourseRun
)
admin
.
site
.
register
(
CourseRun
)
admin
.
site
.
register
(
Seat
)
admin
.
site
.
register
(
Seat
)
admin
.
site
.
register
(
State
)
admin
.
site
.
register
(
State
)
admin
.
site
.
register
(
CourseState
)
admin
.
site
.
register
(
CourseRunState
)
@admin.register
(
CourseUserRole
)
@admin.register
(
CourseUserRole
)
...
...
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