now opening feedback code is a lil more better .
--- a/reg/views.py Tue Apr 13 15:01:05 2010 +0530
+++ b/reg/views.py Tue Apr 13 15:03:37 2010 +0530
@@ -245,11 +245,9 @@
try:
event = Event.objects.get(key__iexact=event_key)
except Event.DoesNotExist:
- return redirect("/reg")
+ raise Http404
- can_do_this = True if user in event.organizers.all() and user.is_staff else False
-
- if can_do_this and event.feedback_status == '0':
+ if user in event.organizers.all() and user.is_staff and event.feedback_status == '0':
#days = event.stop_date.day() - event.start_date.day() + 1
days = 2
if request.method == "POST":