diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-29 13:13:50 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-29 13:13:50 -0700 |
commit | f670f48ddd047f09566e196f86f6253412f801cd (patch) | |
tree | 1511e2b7892ebbc922b1e159bb4297a031bc194c | |
parent | 8087f56b07b11a8abc1f6d5108a70765712cc63d (diff) | |
download | mediagoblin-f670f48ddd047f09566e196f86f6253412f801cd.tar.lz mediagoblin-f670f48ddd047f09566e196f86f6253412f801cd.tar.xz mediagoblin-f670f48ddd047f09566e196f86f6253412f801cd.zip |
form is already validated, no need to validate again
-rw-r--r-- | mediagoblin/edit/views.py | 8 |
1 files 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: |