From 271ec1bfe08351016d0c96fcf8efbb10b33994e7 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 8 Jun 2023 16:25:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=88=9A=E6=89=8D?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=87=B4=E7=9A=84=20acls=20?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=B2=A1=E6=9C=89=E8=BF=87=E6=BB=A4=E7=BB=84?= =?UTF-8?q?=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/acls/models/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/acls/models/base.py b/apps/acls/models/base.py index 0fe16d7d1..d80baeb7e 100644 --- a/apps/acls/models/base.py +++ b/apps/acls/models/base.py @@ -82,7 +82,7 @@ class BaseACL(JMSBaseModel): class UserBaseACL(BaseACL): users = JSONManyToManyField('users.User', default=dict, verbose_name=_('Users')) - class Meta: + class Meta(BaseACL.Meta): abstract = True @classmethod @@ -93,7 +93,7 @@ class UserBaseACL(BaseACL): return queryset.valid().distinct() -class UserAssetAccountBaseACL(UserBaseACL, OrgModelMixin): +class UserAssetAccountBaseACL(OrgModelMixin, UserBaseACL): name = models.CharField(max_length=128, verbose_name=_('Name')) assets = JSONManyToManyField('assets.Asset', default=dict, verbose_name=_('Assets')) accounts = models.JSONField(default=list, verbose_name=_("Accounts"))