Commit 8995c64f by Chris Dodge

add reviewed_by column to list

parent 90177aac
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment