perf: 命令组加命令过滤搜索 (#11898)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-10-18 18:46:49 +08:00
committed by GitHub
parent bdd885069f
commit 00450121bc
3 changed files with 23 additions and 2 deletions

View File

@@ -93,7 +93,10 @@ class CommandGroup(JMSOrgBaseModel):
class CommandFilterACL(UserAssetAccountBaseACL):
command_groups = models.ManyToManyField(CommandGroup, verbose_name=_('Command group'))
command_groups = models.ManyToManyField(
CommandGroup, verbose_name=_('Command group'),
related_name='command_filters'
)
class Meta(UserAssetAccountBaseACL.Meta):
abstract = False