summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparth2012-03-26 09:28:50 +0530
committerparth2012-03-26 09:28:50 +0530
commit4ee41d94b448ca660cef8c33ac9b05cbf8f37bba (patch)
tree688642f9c1692d6fddeeb0110d2c0933991583a8
parent464e30f0da884370b38420e8cf2a06a581f5682c (diff)
downloadaloha-4ee41d94b448ca660cef8c33ac9b05cbf8f37bba.tar.gz
aloha-4ee41d94b448ca660cef8c33ac9b05cbf8f37bba.tar.bz2
aloha-4ee41d94b448ca660cef8c33ac9b05cbf8f37bba.zip
Some of the views were missing @login_required
-rw-r--r--allotter/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/allotter/views.py b/allotter/views.py
index dcfd59f..3a6fa53 100644
--- a/allotter/views.py
+++ b/allotter/views.py
@@ -132,7 +132,8 @@ def user_logout(request):
return redirect ('/allotter/')
#TODO: Extensive Testing
-
+
+@login_required
def submit_options(request, reg_no):
"""
Gets the Options and their preference number through the POST object and
@@ -169,6 +170,7 @@ def submit_options(request, reg_no):
user_application.save()
return HttpResponseRedirect(reverse('allotter.views.complete', args=(reg_no,)))
+@login_required
def complete(request, reg_no):
user = get_object_or_404(User, username=reg_no)
sec_email = user.get_profile().secondary_email