From e32350ba7b4b1a86ea52311484f300335683d8f4 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sat, 13 Mar 2021 22:44:33 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20add=20distinct=20ao=20filtro=20de=20?= =?UTF-8?q?usu=C3=A1rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/base/views.py b/sapl/base/views.py index 8412b83af..3bb3d47fe 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -2047,7 +2047,7 @@ class UserCrud(Crud): q |= Q(groups__name__icontains=q_param) qs = qs.filter(q) - return qs.order_by('-id') + return qs.distinct('id').order_by('-id') class CasaLegislativaCrud(CrudAux):