From f670f48ddd047f09566e196f86f6253412f801cd Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 29 May 2013 13:13:50 -0700 Subject: [PATCH] form is already validated, no need to validate again --- mediagoblin/edit/views.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 249fb8ba..4c4e5131 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -230,13 +230,9 @@ def edit_account(request): license_preference=user.license_preference) if request.method == 'POST' and form.validate(): - if form.wants_comment_notification.validate(form): - user.wants_comment_notification = \ - form.wants_comment_notification.data + user.wants_comment_notification = form.wants_comment_notification.data - if form.license_preference.validate(form): - user.license_preference = \ - form.license_preference.data + user.license_preference = form.license_preference.data if form.new_email.data: if not form.password.data: -- 2.25.1