From 28963a1cd0301c7ecdce84897ebabc2be43538df Mon Sep 17 00:00:00 2001 From: ulyssesBML Date: Fri, 28 Aug 2020 10:50:32 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX=20-=20Corrigindo=20anonymous()=20esquec?= =?UTF-8?q?ido=20na=20migra=C3=A7=C3=A3o=20pro=20django=202.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 4dd968175..41a29e7da 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -1716,7 +1716,7 @@ class AlterarSenhaForm(Form): old_password = data['old_password'] user = User.objects.get(username=username) - if user.is_anonymous(): + if user.is_anonymous: self.logger.warning( 'Não é possível alterar senha de usuário anônimo ({}).'.format(username) )