From 5fdb8a7b1e0ce30ae6273ee6d546ab2a6e046d8e Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 22:57:41 +0200 Subject: [PATCH] Fix wrong state check in send_confirm_email_if_necessary --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 11db2a8e..4345050e 100755 --- a/users/models.py +++ b/users/models.py @@ -813,7 +813,7 @@ class User( return False # Don't allow users without a confirmed email to postpone their due date - if self.state == self.STATE_ACTIVE or not self.email_change_date: + if self.email_state == self.EMAIL_STATE_VERIFIED or not self.email_change_date: self.email_change_date = timezone.now() self.save()