mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 01:45:27 +00:00
perf(perms): 应用授权表添加字段,type和category
This commit is contained in:
@@ -133,4 +133,6 @@ class Application(CommonModelMixin, OrgModelMixin):
|
||||
ordering = ('name',)
|
||||
|
||||
def __str__(self):
|
||||
return '{}({})'.format(self.name, self.get_category_display())
|
||||
category_display = self.get_category_display()
|
||||
type_display = self.get_type_display()
|
||||
return f'{self.name}({type_display})[{category_display}]'
|
||||
|
Reference in New Issue
Block a user