--- a/feedback/views.py Sat Apr 17 13:38:25 2010 +0530
+++ b/feedback/views.py Sat Apr 17 14:59:58 2010 +0530
@@ -104,14 +104,11 @@
for day in days:
day_num = str(day)
- day_feeds = Feedback.objects.filter(event=event,day=day_num)
+ day_feeds = event.feedback.filter(day=day_num)
day_report = make_day_report(day_feeds)
if day_report:
- day_comments = []
- for feed in day_feeds:
- if feed.comments:
- day_comments.append(feed.comments)
- day_report.extend(["Comments:",day_comments])
+ day_comments = [ feed.comments for feed in day_feeds if feed.comments ]
+ day_report.extend(["General 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})