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
OpenEdx
edx-platform
Commits
6694d9e0
Commit
6694d9e0
authored
Sep 25, 2017
by
Albert St. Aubin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a Django Admin page for Entitlements.
parent
d0506c38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
common/djangoapps/entitlements/admin.py
+8
-0
common/djangoapps/entitlements/models.py
+0
-1
lms/templates/learner_dashboard/program_details_view.underscore
+1
-1
No files found.
common/djangoapps/entitlements/admin.py
0 → 100644
View file @
6694d9e0
from
django.contrib
import
admin
from
.models
import
CourseEntitlement
@admin.register
(
CourseEntitlement
)
class
EntitlementAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'user_id'
,
'root_course_id'
,
'enroll_end_date'
,
'mode'
,
'enrollment_course_id'
,
'is_active'
)
common/djangoapps/entitlements/models.py
View file @
6694d9e0
...
...
@@ -3,7 +3,6 @@ from django.contrib.auth.models import User
from
student.models
import
CourseEnrollment
from
course_modes.models
import
CourseMode
class
CourseEntitlement
(
models
.
Model
):
"""
Represents a Student's Entitlement to a Course Run for a given Course.
...
...
lms/templates/learner_dashboard/program_details_view.underscore
View file @
6694d9e0
...
...
@@ -49,7 +49,7 @@
<div class="course-list js-course-list-in-progress row"></div>
</div>
<% } %>
<div class="
in-progres
s-group">
<div class="
entitlement
s-group">
<h4 class="course-list-heading">
<span class="status"><%- gettext('COURSE ENTITLEMENTS') %></span>
<span class="count"><%- entitlementCount %></span>
...
...
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