From 33f7d17ddc6ee94f6ba8675185f8acd6f05b2f02 Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Mon, 8 Aug 2022 00:21:04 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20remove=20OpenAPI=20btn=20do=20detail?= =?UTF-8?q?=20de=20adm=20de=20usu=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sapl/base/views.py b/sapl/base/views.py index 38301f531..f1385e3a2 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -715,7 +715,7 @@ class RelatorioDataFimPrazoTramitacaoView(RelatorioMixin, FilterView): context['ano'] = self.request.GET['ano'] else: context['ano'] = '' - + if self.request.GET['tipo']: tipo = self.request.GET['tipo'] context['tipo'] = ( @@ -1893,6 +1893,8 @@ class UserCrud(Crud): list_field_names = [ 'usuario', 'groups', 'is_active' ] + def openapi_url(self): + return '' def resolve_url(self, suffix, args=None): return reverse('sapl.base:%s' % self.url_name(suffix), @@ -1925,6 +1927,7 @@ class UserCrud(Crud): class DetailView(Crud.DetailView): layout_key = 'UserDetail' + def hook_usuario(self, obj): return 'Usuário', '{}
{}'.format( obj.get_full_name() or '...', @@ -2190,7 +2193,7 @@ class SaplSearchView(SearchView): models = [] context['models'] = '' - context['is_paginated'] = True + context['is_paginated'] = True page_obj = context['page'] context['page_obj'] = page_obj