--- a/feedback/views.py Thu Apr 15 14:38:48 2010 +0530
+++ b/feedback/views.py Thu Apr 15 14:50:47 2010 +0530
@@ -99,6 +99,8 @@
for day in days:
day_num = str(day)
day_feeds = Feedback.objects.filter(event=event,day=day_num)
- workshop_report.extend( [ "Day %s"%day_num, make_day_report(day_feeds) ] )
+ day_report = make_day_report(day_feeds)
+ if day_report:
+ workshop_report.extend( [ "Day %s"%day_num, day_report] )
return render_to_response("show_report.html", {"user":user, "event":event, "workshop_report":workshop_report})