From b391e354ce6b38909692b884540074c73aa2f92e Mon Sep 17 00:00:00 2001 From: Carlos Oliveira Date: Thu, 18 Dec 2014 14:02:45 -0200 Subject: [PATCH] Validated if email is changed through other means --- colab/accounts/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/colab/accounts/views.py b/colab/accounts/views.py index c6cbf84..3ad7aa3 100644 --- a/colab/accounts/views.py +++ b/colab/accounts/views.py @@ -152,7 +152,8 @@ def signup(request): user = user_form.save(commit=False) user.needs_update = False - user.save() + update_fields = ['first_name', 'last_name', 'username', 'needs_update'] + user.save(update_fields=update_fields) # Check if the user's email have been used previously # in the mainling lists to link the user to old messages -- libgit2 0.21.2