updated the que_dump template to show the question properly.
authornishanth
Thu, 22 Apr 2010 05:41:35 +0530
changeset 48 aae2f69ba89c
parent 47 8a837762531b
child 49 3643f59f141e
updated the que_dump template to show the question properly.
event/views.py
templates/que_dump.html
--- a/event/views.py	Thu Apr 22 05:33:07 2010 +0530
+++ b/event/views.py	Thu Apr 22 05:41:35 2010 +0530
@@ -207,4 +207,4 @@
             ans.save()
         return redirect("/quiz/toppers/%s/%s"%(ADMIN_KEY, quiz_num))
     else:
-        return render_to_response("que_dump.html", {"quiz_name":quiz_name, "answers":answers})
+        return render_to_response("que_dump.html", {"quiz_name":quiz_name, "question":question, "answers":answers})
--- a/templates/que_dump.html	Thu Apr 22 05:33:07 2010 +0530
+++ b/templates/que_dump.html	Thu Apr 22 05:41:35 2010 +0530
@@ -1,6 +1,11 @@
 {% extends 'base.html' %}
 {% block content %}
-List of answers submitted for {{quiz_name}} of {{event.title}}<br />
+List of answers submitted for {{quiz_name}}<br />
+<br />
+{{question.description|linebreaksbr}}<br /><br />
+<fieldset><pre>{{question.code}}</pre></fieldset>
+<br />
+Answers Submitted:<br />
 <form action="" method="post">
 <table cellspacing="5" cellpadding="3">
 		<tr>