removed the field feedback_submitted_by from event model and added the code to create feedlog record when a new feedback is taken.
--- a/feedback/views.py Thu Apr 15 18:57:55 2010 +0530
+++ b/feedback/views.py Thu Apr 15 19:00:23 2010 +0530
@@ -45,8 +45,7 @@
new_feedback.comments = data['comments']
new_feedback.save()
- event.feedback_submitted_by.add(user)
- event.save()
+ FeedLog(user=user, event=event, day=event.feedback_status).save()
return render_to_response('feedback.html', {'user':user, 'submitted':True, 'event':event})
else:
--- a/reg/models.py Thu Apr 15 18:57:55 2010 +0530
+++ b/reg/models.py Thu Apr 15 19:00:23 2010 +0530
@@ -44,7 +44,6 @@
stop_date = models.DateField(verbose_name="End Date")
venue = models.CharField(max_length=100, help_text="College name and city")
- feedback_submitted_by = models.ManyToManyField(User, related_name="%(class)s_feedback_submitted_by")
attendees = models.ManyToManyField(User, related_name="%(class)s_attendees")
organizers = models.ManyToManyField(User, related_name="%(class)s_organizers")