equal
deleted
inserted
replaced
207 |
207 |
208 for question in questions: |
208 for question in questions: |
209 question.topic_name = topic_num2name[question.topic] |
209 question.topic_name = topic_num2name[question.topic] |
210 return render_to_response("list_questions.html", {"questions":questions}) |
210 return render_to_response("list_questions.html", {"questions":questions}) |
211 |
211 |
|
212 def edit_question(request, qid): |
|
213 """ Show the question and then edit it. |
|
214 """ |
|
215 |
|
216 try: |
|
217 q = QuestionBank.objects.get(id=qid) |
|
218 except QuestionBank.DoesNotExitst: |
|
219 raise Http404 |
|
220 |
|
221 |
|
222 |