From e1a939adcad079731233d74d6d079968e5e4494b Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sun, 24 Mar 2019 14:34:42 -0300 Subject: [PATCH] =?UTF-8?q?elimina=20ordena=C3=A7=C3=A3o=20descendente=20d?= =?UTF-8?q?o=20model=20e=20applic=20da=20tabela?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/crud/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/crud/base.py b/sapl/crud/base.py index 0dc11ea5c..98af2a3bb 100644 --- a/sapl/crud/base.py +++ b/sapl/crud/base.py @@ -581,6 +581,8 @@ class CrudListView(PermissionRequiredContainerCrudMixin, ListView): rmo = rmo[0] if not isinstance(rmo, str): rmo = rmo[0] + if rmo.startswith('-'): + rmo = rmo[1:] fo = '%s__%s' % (fo, rmo) fo = desc + fo