modified the link in templates to the correct one and fixed a typo in view
authornishanth
Thu, 01 Jul 2010 16:44:17 +0530
changeset 84 08af9e4ada78
parent 83 76971eed55c6
child 85 451be7b1de20
modified the link in templates to the correct one and fixed a typo in view
event/views.py
templates/list_questions.html
--- a/event/views.py	Thu Jul 01 16:40:24 2010 +0530
+++ b/event/views.py	Thu Jul 01 16:44:17 2010 +0530
@@ -215,7 +215,7 @@
 
     try:
         q = QuestionBank.objects.get(id=qid)
-    except QuestionBank.DoesNotExitst:
+    except QuestionBank.DoesNotExist:
         raise Http404
 
 
--- a/templates/list_questions.html	Thu Jul 01 16:40:24 2010 +0530
+++ b/templates/list_questions.html	Thu Jul 01 16:44:17 2010 +0530
@@ -8,7 +8,7 @@
 		</tr>
 		{% for question in questions %}
 		<tr>
-<td><a href="/quiz/questions/ditchax/question.id">{{question.description}}</a></td>
+				<td><a href="/quiz/questions/edit/ditchax/{{question.id}}">{{question.description}}</a></td>
 <td>{{question.topic_name}}</td>
 </tr>
 {% endfor %}