summaryrefslogtreecommitdiff
path: root/allotter
diff options
context:
space:
mode:
Diffstat (limited to 'allotter')
-rw-r--r--allotter/forms.py2
-rw-r--r--allotter/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/allotter/forms.py b/allotter/forms.py
index b3a9039..6bd1400 100644
--- a/allotter/forms.py
+++ b/allotter/forms.py
@@ -98,7 +98,7 @@ class UserDetailsForm(forms.Form):
self.helper.form_id = 'id-detailsform'
self.helper.form_method = 'post'
self.helper.form_class = 'form-horizontal'
- self.helper.form_action = "/allotter/details/"
+ self.helper.form_action = "/allotter/"+user.username+"/details/"
self.helper.add_input(Submit('submit', 'Submit'))
super(UserDetailsForm, self).__init__(*args, **kwargs)
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})