From dd57c6c5e51a62875542446e0432f850f0239ef8 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Sat, 31 Aug 2013 13:45:58 -0700 Subject: [PATCH] didn't remove form.new_email when change email was moved to its own view --- mediagoblin/edit/views.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index b09f8c5e..be19bcda 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -237,17 +237,13 @@ def edit_account(request): user.license_preference = form.license_preference.data - if form.new_email.data: - _update_email(request, form, user) - - if not form.errors: - user.save() - messages.add_message(request, - messages.SUCCESS, - _("Account settings saved")) - return redirect(request, - 'mediagoblin.user_pages.user_home', - user=user.username) + user.save() + messages.add_message(request, + messages.SUCCESS, + _("Account settings saved")) + return redirect(request, + 'mediagoblin.user_pages.user_home', + user=user.username) return render_to_response( request, -- 2.25.1