summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorprathamesh2016-04-01 17:36:45 +0530
committerprathamesh2016-04-01 17:36:45 +0530
commit561168145ef75c0182ab0ee7d54779973b739e6c (patch)
treee309d7fb5f80219af2cf37ec98b5f3e5b2a57617 /yaksh/views.py
parent6517faffb2a9d1bef316700380df46abfb1c93b6 (diff)
downloadonline_test-561168145ef75c0182ab0ee7d54779973b739e6c.tar.gz
online_test-561168145ef75c0182ab0ee7d54779973b739e6c.tar.bz2
online_test-561168145ef75c0182ab0ee7d54779973b739e6c.zip
Minor changes due to model change
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 30a9299..d06785f 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1210,7 +1210,8 @@ def download_csv(request, questionpaper_id):
paper.marks_obtained,
paper.question_paper.total_marks,
paper.percent,
- paper.questions, paper.questions_answered,
+ paper.questions.all(),
+ paper.questions_answered.all(),
paper.status
]
writer.writerow(row)