From 478eebed1e665c9106e1ce4b1c8c868812152222 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Thu, 20 Oct 2016 12:41:32 -0200 Subject: [PATCH] =?UTF-8?q?Corrige=20erro=20na=20edi=C3=A7=C3=A3o=20de=20a?= =?UTF-8?q?utores=20via=20user=20n=C3=A3o=20admin?= 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 437616bf8..ef0754f92 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -420,7 +420,7 @@ class AutorForm(ModelForm): user_old.groups.remove(grupo) elif user_old: user_old.groups.remove(grupo) - else: + elif user_old: user_old.groups.remove(grupo) return autor