diff options
author | adityacp | 2017-10-06 18:01:56 +0530 |
---|---|---|
committer | adityacp | 2017-10-06 18:01:56 +0530 |
commit | ab71b790f209e44b22142f360a9de1e95091ead3 (patch) | |
tree | 789c4be4162c246913db1f029d0ca4116eed8d61 | |
parent | bf17148a234b77a4a4521d34e17afddb3cd34914 (diff) | |
download | online_test-ab71b790f209e44b22142f360a9de1e95091ead3.tar.gz online_test-ab71b790f209e44b22142f360a9de1e95091ead3.tar.bz2 online_test-ab71b790f209e44b22142f360a9de1e95091ead3.zip |
Get questions in particular order in template
-rw-r--r-- | yaksh/templates/exam.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index 4d211d2..9596c1c 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -46,7 +46,7 @@ <div class="col-sm-3 col-md-2 sidebar"> <p> Question Navigator </p> <ul class="pagination pagination-sm"> - {% for qid in paper.questions.all %} + {% for qid in paper.get_all_ordered_questions %} {%if paper.question_paper.quiz.allow_skip %} {% if qid in paper.get_questions_unanswered %} {% if qid.id == question.id %} |