diff options
author | prathamesh | 2017-10-27 03:43:19 +0530 |
---|---|---|
committer | prathamesh | 2017-10-27 03:43:19 +0530 |
commit | b7864df91a82d6d56d4eb76d39aae2954302669a (patch) | |
tree | bc521255bf60e11b00401323225598b0f2c71df9 /yaksh/views.py | |
parent | ee1bdbdaaf9a6446506719dfb074cd598d4799e4 (diff) | |
download | online_test-b7864df91a82d6d56d4eb76d39aae2954302669a.tar.gz online_test-b7864df91a82d6d56d4eb76d39aae2954302669a.tar.bz2 online_test-b7864df91a82d6d56d4eb76d39aae2954302669a.zip |
Excluded teachers and creator form the enrolled users list
Changed the HTML select id attribute to name, necessary to track in POST
request
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 8bd65bb..0293ae7 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1335,6 +1335,7 @@ def download_quiz_csv(request, course_id, quiz_id): = 'answerpaper.get_per_question_score({0})'.format(question.id) csv_fields_values.update(questions_scores) + users = users.exclude(id=course.creator.id).exclude(id__in=course.teachers.all()) for user in users: row = [] answerpaper = None |