|
@ -1893,6 +1893,8 @@ class UserCrud(Crud): |
|
|
list_field_names = [ |
|
|
list_field_names = [ |
|
|
'usuario', 'groups', 'is_active' |
|
|
'usuario', 'groups', 'is_active' |
|
|
] |
|
|
] |
|
|
|
|
|
def openapi_url(self): |
|
|
|
|
|
return '' |
|
|
|
|
|
|
|
|
def resolve_url(self, suffix, args=None): |
|
|
def resolve_url(self, suffix, args=None): |
|
|
return reverse('sapl.base:%s' % self.url_name(suffix), |
|
|
return reverse('sapl.base:%s' % self.url_name(suffix), |
|
@ -1925,6 +1927,7 @@ class UserCrud(Crud): |
|
|
class DetailView(Crud.DetailView): |
|
|
class DetailView(Crud.DetailView): |
|
|
layout_key = 'UserDetail' |
|
|
layout_key = 'UserDetail' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def hook_usuario(self, obj): |
|
|
def hook_usuario(self, obj): |
|
|
return 'Usuário', '{}<br><small>{}</small>'.format( |
|
|
return 'Usuário', '{}<br><small>{}</small>'.format( |
|
|
obj.get_full_name() or '...', |
|
|
obj.get_full_name() or '...', |
|
|