Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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-proctoring
Commits
8995c64f
Commit
8995c64f
authored
Sep 28, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reviewed_by column to list
parent
90177aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
edx_proctoring/admin.py
+3
-2
No files found.
edx_proctoring/admin.py
View file @
8995c64f
...
@@ -78,7 +78,7 @@ class ProctoredExamSoftwareSecureReviewAdmin(admin.ModelAdmin):
...
@@ -78,7 +78,7 @@ class ProctoredExamSoftwareSecureReviewAdmin(admin.ModelAdmin):
"""
"""
readonly_fields
=
[
video_url_for_review
,
'attempt_code'
,
'exam'
,
'student'
,
'reviewed_by'
,
'modified'
]
readonly_fields
=
[
video_url_for_review
,
'attempt_code'
,
'exam'
,
'student'
,
'reviewed_by'
,
'modified'
]
list_filter
=
[
'review_status'
,
'exam__course_id'
,
'exam__exam_name'
]
list_filter
=
[
'review_status'
,
'exam__course_id'
,
'exam__exam_name'
,
'reviewed_by'
]
list_select_related
=
True
list_select_related
=
True
search_fields
=
[
'student__username'
,
'attempt_code'
]
search_fields
=
[
'student__username'
,
'attempt_code'
]
form
=
ProctoredExamSoftwareSecureReviewForm
form
=
ProctoredExamSoftwareSecureReviewForm
...
@@ -118,6 +118,7 @@ class ProctoredExamSoftwareSecureReviewAdmin(admin.ModelAdmin):
...
@@ -118,6 +118,7 @@ class ProctoredExamSoftwareSecureReviewAdmin(admin.ModelAdmin):
'student_username_for_review'
,
'student_username_for_review'
,
'attempt_code'
,
'attempt_code'
,
'modified'
,
'modified'
,
'reviewed_by'
,
'review_status'
'review_status'
]
]
...
@@ -133,7 +134,7 @@ class ProctoredExamSoftwareSecureReviewAdmin(admin.ModelAdmin):
...
@@ -133,7 +134,7 @@ class ProctoredExamSoftwareSecureReviewAdmin(admin.ModelAdmin):
"""
"""
Override callback so that we can inject the user_id that made the change
Override callback so that we can inject the user_id that made the change
"""
"""
review
.
set_by_user
=
request
.
user
review
.
reviewed_by
=
request
.
user
review
.
save
()
review
.
save
()
# call the review saved and since it's coming from
# call the review saved and since it's coming from
# the Django admin will we accept failures
# the Django admin will we accept failures
...
...
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