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
4a4cebc9
Commit
4a4cebc9
authored
Sep 14, 2016
by
Clinton Blackburn
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using SimpleHistoryAdmin as base class for models using django-simple-history (#327)
parent
6118a3c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
course_discovery/apps/course_metadata/admin.py
+3
-3
No files found.
course_discovery/apps/course_metadata/admin.py
View file @
4a4cebc9
...
...
@@ -40,7 +40,7 @@ class CorporateEndorsementsInline(admin.TabularInline):
@admin.register
(
Course
)
class
CourseAdmin
(
admin
.
Model
Admin
):
class
CourseAdmin
(
SimpleHistory
Admin
):
list_display
=
(
'uuid'
,
'key'
,
'title'
,)
list_filter
=
(
'partner'
,)
ordering
=
(
'key'
,
'title'
,)
...
...
@@ -49,7 +49,7 @@ class CourseAdmin(admin.ModelAdmin):
@admin.register
(
CourseRun
)
class
CourseRunAdmin
(
admin
.
Model
Admin
):
class
CourseRunAdmin
(
SimpleHistory
Admin
):
inlines
=
(
SeatInline
,)
list_display
=
(
'uuid'
,
'key'
,
'title'
,)
list_filter
=
(
...
...
@@ -159,7 +159,7 @@ class SubjectAdmin(admin.ModelAdmin):
@admin.register
(
Person
)
class
PersonAdmin
(
admin
.
Model
Admin
):
class
PersonAdmin
(
SimpleHistory
Admin
):
inlines
=
(
PositionInline
,)
list_display
=
(
'uuid'
,
'family_name'
,
'given_name'
,
'slug'
,)
list_filter
=
(
'partner'
,)
...
...
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