summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorprathamesh2016-03-31 13:41:43 +0530
committerprathamesh2016-04-01 17:04:56 +0530
commit3632618c1d52e73980e7e481e997c3eca7845d7f (patch)
tree0e0721af3fafe17b0b336680349b66c586f6308d /yaksh/templates
parentb121d2215b7cd5f4de9d78a0bee015952d3f5d97 (diff)
downloadonline_test-3632618c1d52e73980e7e481e997c3eca7845d7f.tar.gz
online_test-3632618c1d52e73980e7e481e997c3eca7845d7f.tar.bz2
online_test-3632618c1d52e73980e7e481e997c3eca7845d7f.zip
Django 1.5.7 does not support first()
So had to make changes.
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/complete.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html
index 7ebd062..07cbf3a 100644
--- a/yaksh/templates/yaksh/complete.html
+++ b/yaksh/templates/yaksh/complete.html
@@ -5,6 +5,7 @@
{% block pagetitle %}Online Test{% endblock %}
{% block content %}
{% csrf_token %}
+ {% if paper.questions_answered.all or paper.questions_unanswered.all %}
<br><center><table class="bordered-table zebra-striped span8"
style="text-align:left;">
<tr><td><b>Submitted Questions</b></td>
@@ -23,7 +24,8 @@
<p><b>All Questions have been Submitted</b></p>
{% endif %}
</td></tr>
- </table></center>
+ </table></center>
+ {% endif %}
<center><h2> Good bye! </h2></center>
<center><h4> {{message}} </h4></center>
<br><center><h4>You may now close the browser.</h4></center><br>