Commit 90165224 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

do not save instance in edit_profile GET if user is already verified

parent 0d20e11c
......@@ -269,8 +269,9 @@ def edit_profile(request, template_name='im/profile.html', extra_context={}):
except ValueError, ve:
messages.success(request, ve)
elif request.method == "GET":
request.user.is_verified = True
request.user.save()
if not request.user.is_verified:
request.user.is_verified = True
request.user.save()
return render_response(template_name,
reset_cookie = reset_cookie,
profile_form = form,
......
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