diff options
author | Madhusudan.C.S | 2010-11-15 19:43:15 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2010-11-15 19:43:15 +0530 |
commit | 1a9687da44ec63ab40c44e2dc64f986f7564bc7f (patch) | |
tree | 7fb0bcddae6a890b707a54d1fccdb42a38531f3a /project | |
parent | 0b84933acb7ff38e9777d8ed9ca2146357a70b0c (diff) | |
download | scipycon-1a9687da44ec63ab40c44e2dc64f986f7564bc7f.tar.gz scipycon-1a9687da44ec63ab40c44e2dc64f986f7564bc7f.tar.bz2 scipycon-1a9687da44ec63ab40c44e2dc64f986f7564bc7f.zip |
Add cookie and return message for regstats view function.
--HG--
branch : payments
Diffstat (limited to 'project')
-rw-r--r-- | project/scipycon/registration/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py index b38c791..e4ce38b 100644 --- a/project/scipycon/registration/views.py +++ b/project/scipycon/registration/views.py @@ -302,7 +302,9 @@ def regstats(request, scope, 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() |