Add cookie and return message for regstats view function.
--- a/project/scipycon/registration/views.py Mon Nov 15 19:38:59 2010 +0530
+++ b/project/scipycon/registration/views.py Mon Nov 15 19:43:15 2010 +0530
@@ -302,7 +302,9 @@
if not request.user.is_staff:
redirect_to = reverse('scipycon_login', kwargs={'scope': scope})
-
+ return set_message_cookie(
+ redirect_to, msg = u'You must be a staff on this website to '
+ 'access this page.')
q = Registration.objects.all()
conf_num = q.filter(conference=True).count()