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
847797da
Commit
847797da
authored
Nov 02, 2015
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10460 from edx/clintonb/enrollment-admin
Removed read-only fields from enrollment admin
parents
b900221c
c34dfac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
common/djangoapps/student/admin.py
+0
-6
No files found.
common/djangoapps/student/admin.py
View file @
847797da
...
...
@@ -138,12 +138,6 @@ class CourseEnrollmentAdmin(admin.ModelAdmin):
list_filter
=
(
'mode'
,
'is_active'
,)
search_fields
=
(
'course_id'
,
'mode'
,
'user__username'
,)
def
get_readonly_fields
(
self
,
request
,
obj
=
None
):
# The course_id, mode, and user fields should not be editable for an existing enrollment.
if
obj
:
return
self
.
readonly_fields
+
(
'course_id'
,
'mode'
,
'user'
,)
return
self
.
readonly_fields
class
Meta
(
object
):
model
=
CourseEnrollment
...
...
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