now comments also will be displayed through the unordered_list filter
authornishanth
Sat, 17 Apr 2010 13:38:25 +0530
changeset 96 e51b94b6b5a4
parent 95 f5ae0bcb044e
child 97 87d522d28a28
now comments also will be displayed through the unordered_list filter
feedback/views.py
--- a/feedback/views.py	Sat Apr 17 13:20:33 2010 +0530
+++ b/feedback/views.py	Sat Apr 17 13:38:25 2010 +0530
@@ -107,12 +107,11 @@
         day_feeds = Feedback.objects.filter(event=event,day=day_num)
         day_report = make_day_report(day_feeds) 
         if day_report:
-            day_comments = "Comments: <br /><ol>"
+            day_comments = []
             for feed in day_feeds:
                 if feed.comments:
-                    day_comments += "<li>%s</li>"%feed.comments
-            day_comments += "</ol>"
-            day_report.append(day_comments)
+                    day_comments.append(feed.comments)
+                    day_report.extend(["Comments:",day_comments])
             workshop_report.extend( [ "Day %s"%day_num, day_report] )
 
     return render_to_response("show_report.html", {"user":user, "event":event, "workshop_report":workshop_report})