now comments are also displayed on view report page.
--- 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})
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/500.html Sat Apr 17 14:59:58 2010 +0530
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+{% block content %}
+500 Error<br />
+Server encountered some error. This event will be reported.<br />
+{% endblock %}
--- a/templates/505.html Sat Apr 17 13:38:25 2010 +0530
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-{% extends "base.html" %}
-{% block content %}
-500 Error<br />
-Server encountered some error. This event will be reported.<br />
-{% endblock %}