Mercurial > public > sg101
diff bio/views.py @ 1123:ce6a0c12cbf3
Convert edit profile to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 17 Aug 2016 20:39:07 -0500 |
parents | 2574cd24773e |
children | 4f81c9fe8705 |
line wrap: on
line diff
--- a/bio/views.py Wed Aug 03 21:17:59 2016 -0500 +++ b/bio/views.py Wed Aug 17 20:39:07 2016 -0500 @@ -105,8 +105,6 @@ @login_required def edit_profile(request): if request.method == 'POST': - if request.POST.get('submit_button', 'Cancel') == 'Cancel': - return redirect('bio-me') profile = request.user.profile user_form = EditUserForm(request.POST, instance=request.user) profile_form = EditUserProfileForm(request.POST, instance=profile) @@ -124,6 +122,7 @@ return render(request, 'bio/edit_profile.html', { 'user_form': user_form, 'profile_form': profile_form, + 'V3_DESIGN': True, }) #######################################################################