now opening registration code is a lil better .
--- a/reg/views.py Tue Apr 13 14:58:10 2010 +0530
+++ b/reg/views.py Tue Apr 13 14:59:34 2010 +0530
@@ -293,14 +293,12 @@
except Event.DoesNotExist:
return redirect("/reg")
- is_org = True if user in event.organizers.all() and user.is_staff else False
-
- if is_org:
+ if user in event.organizers.all() and user.is_staff:
event.registration_is_open = True
event.save()
return render_to_response('reg_open.html', {'user':user, 'event': event})
else:
- return redirect('/reg')
+ raise Http404
def close_registration(request, event_key):
""" simply check for is_org and then unset the registration_is_open flag.