Browse Source

HOT-FIX: remove OpenAPI btn do detail de adm de usuário

pull/3588/head
LeandroJatai 2 years ago
parent
commit
33f7d17ddc
  1. 3
      sapl/base/views.py

3
sapl/base/views.py

@ -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', '{}<br><small>{}</small>'.format(
obj.get_full_name() or '...',

Loading…
Cancel
Save