didn't remove form.new_email when change email was moved to its own view
authorRodney Ewing <ewing.rj@gmail.com>
Sat, 31 Aug 2013 20:45:58 +0000 (13:45 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Sat, 31 Aug 2013 20:45:58 +0000 (13:45 -0700)
mediagoblin/edit/views.py

index b09f8c5e6541d9c29a5b239eeaf6af9408d1ef91..be19bcda716ea7b1a11a530867785f59f0538258 100644 (file)
@@ -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,