From bf71c8750ac0a08d436a8b691b9eac5a6d0ad1a5 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Tue, 6 Nov 2018 20:40:56 -0200 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20corrige=20erro=20de=20verifica=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20filtro=20vazio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/compilacao/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapl/compilacao/views.py b/sapl/compilacao/views.py index 82c7cba2a..6d71344eb 100644 --- a/sapl/compilacao/views.py +++ b/sapl/compilacao/views.py @@ -2928,7 +2928,8 @@ class DispositivoSearchFragmentFormView(ListView): response = ListView.get(self, request, *args, **kwargs) - if isinstance(self.object_list, list) and self.object_list or \ + if not self.object_list or \ + not isinstance(self.object_list, list) and \ not self.object_list.exists(): messages.info( request, _('Não foram encontrados resultados '