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
edx
edx-proctoring
Commits
abd096e5
Commit
abd096e5
authored
Dec 21, 2015
by
Hasnain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing filter class for status
parent
c93c426d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
42 deletions
+3
-42
edx_proctoring/admin.py
+3
-42
No files found.
edx_proctoring/admin.py
View file @
abd096e5
...
@@ -341,45 +341,6 @@ class ProctoredExamSoftwareSecureReviewHistoryAdmin(ProctoredExamSoftwareSecureR
...
@@ -341,45 +341,6 @@ class ProctoredExamSoftwareSecureReviewHistoryAdmin(ProctoredExamSoftwareSecureR
return
return
class
ExamAttemptFilterByStatus
(
admin
.
SimpleListFilter
):
"""
Quick filter to allow admins to see attempts by "status"
"""
title
=
_
(
'Status'
)
parameter_name
=
'status'
def
lookups
(
self
,
request
,
model_admin
):
"""
List of values to allow admin to select
"""
return
(
(
ProctoredExamStudentAttemptStatus
.
created
,
_
(
'Created'
)),
(
ProctoredExamStudentAttemptStatus
.
download_software_clicked
,
_
(
'Download Software Clicked'
)),
(
ProctoredExamStudentAttemptStatus
.
ready_to_start
,
_
(
'Ready To Start'
)),
(
ProctoredExamStudentAttemptStatus
.
started
,
_
(
'Started'
)),
(
ProctoredExamStudentAttemptStatus
.
ready_to_submit
,
_
(
'Ready To Submit'
)),
(
ProctoredExamStudentAttemptStatus
.
declined
,
_
(
'Declined'
)),
(
ProctoredExamStudentAttemptStatus
.
timed_out
,
_
(
'Timed Out'
)),
(
ProctoredExamStudentAttemptStatus
.
submitted
,
_
(
'Submitted'
)),
(
ProctoredExamStudentAttemptStatus
.
second_review_required
,
_
(
'Second Review Required'
)),
(
ProctoredExamStudentAttemptStatus
.
verified
,
_
(
'Verified'
)),
(
ProctoredExamStudentAttemptStatus
.
rejected
,
_
(
'Rejected'
)),
(
ProctoredExamStudentAttemptStatus
.
not_reviewed
,
_
(
'Not Reviewed'
)),
(
ProctoredExamStudentAttemptStatus
.
error
,
_
(
'Error'
)),
)
def
queryset
(
self
,
request
,
queryset
):
"""
Return the filtered queryset
"""
if
self
.
value
()
in
[
ProctoredExamStudentAttemptStatus
.
created
,
ProctoredExamStudentAttemptStatus
.
submitted
]:
return
queryset
.
filter
(
status
=
self
.
value
())
else
:
return
queryset
class
ExamAttemptFilterByCourseId
(
admin
.
SimpleListFilter
):
class
ExamAttemptFilterByCourseId
(
admin
.
SimpleListFilter
):
"""
"""
Quick filter to allow admins to see attempts by "course_id"
Quick filter to allow admins to see attempts by "course_id"
...
@@ -480,9 +441,9 @@ class ProctoredExamStudentAttemptAdmin(admin.ModelAdmin):
...
@@ -480,9 +441,9 @@ class ProctoredExamStudentAttemptAdmin(admin.ModelAdmin):
]
]
list_filter
=
[
list_filter
=
[
ExamAttemptFilterByStatus
,
'status'
,
"taking_as_proctored"
,
'taking_as_proctored'
,
"is_sample_attempt"
,
'is_sample_attempt'
,
ExamAttemptFilterByCourseId
ExamAttemptFilterByCourseId
]
]
...
...
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