Commit ea09c81a authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

views/user: don't refer to request.POST for non-POST requests

We're ending up wth form errors due to using request.POST, which is
Signed-off-by: default avatarJeremy Kerr <>
parent 60abdf19
......@@ -63,7 +63,6 @@ def profile(request):
def link(request):
context = PatchworkRequestContext(request)
form = UserPersonLinkForm(request.POST)
if request.method == 'POST':
form = UserPersonLinkForm(request.POST)
if form.is_valid():
......@@ -82,6 +81,8 @@ def link(request):
context['confirmation'] = None
context['error'] = 'An error occurred during confirmation. ' + \
'Please try again later'
form = UserPersonLinkForm()
context['linkform'] = form
return render_to_response('patchwork/user-link.html', context)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment