summaryrefslogtreecommitdiff
path: root/allotter/views.py
diff options
context:
space:
mode:
authorparth2012-03-27 14:16:44 +0530
committerparth2012-03-27 14:17:18 +0530
commit74b8df5840513c1df669ea05f670e5164b3440f3 (patch)
tree2a13378a258d8353f5cb33d3625f7e7ee8f12032 /allotter/views.py
parent0cacd717c5bdc6618265b193634584b8ec21418f (diff)
downloadaloha-74b8df5840513c1df669ea05f670e5164b3440f3.tar.gz
aloha-74b8df5840513c1df669ea05f670e5164b3440f3.tar.bz2
aloha-74b8df5840513c1df669ea05f670e5164b3440f3.zip
modified urls and views to make relative urls working
Diffstat (limited to 'allotter/views.py')
-rw-r--r--allotter/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/allotter/views.py b/allotter/views.py
index f4c83e5..93a1660 100644
--- a/allotter/views.py
+++ b/allotter/views.py
@@ -67,7 +67,7 @@ def submit_details(request, reg_no):
if form.is_valid():
data = form.cleaned_data
form.save()
- return redirect("/allotter/apply/")
+ return HttpResponseRedirect(reverse('allotter.views.apply', args=(user.username,)))
else:
return render(request, 'allotter/details.html', {'form':form})