perf(assets/terminal): 资产系统用户和Session会话添加协议选项: mysql/oracle/postgresql

This commit is contained in:
Bai
2020-10-27 19:06:54 +08:00
committed by 老广
parent a3507975fb
commit 8fa15b3378
6 changed files with 68 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ class DatabaseAppPermissionCreateUpdateForm(OrgModelForm):
# 过滤系统用户
system_users_field = self.fields.get('system_users')
system_users_field.queryset = SystemUser.objects.filter(
protocol=SystemUser.PROTOCOL_MYSQL
protocol__in=SystemUser.application_category_protocols
)
class Meta: