perf: user perm (#9329)

Co-authored-by: feng <1304903146@qq.com>
pull/9330/head
fit2bot 2023-01-17 18:19:34 +08:00 committed by GitHub
parent ab5b85d9b5
commit f54edab172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ from perms import serializers
from perms.hands import Asset from perms.hands import Asset
from perms.utils import PermAccountUtil from perms.utils import PermAccountUtil
from .mixin import SelfOrPKUserMixin from .mixin import SelfOrPKUserMixin
from ...models import AssetPermission
logger = get_logger(__name__) logger = get_logger(__name__)
__all__ = [ __all__ = [
@ -16,6 +16,7 @@ __all__ = [
class UserPermedAssetAccountsApi(SelfOrPKUserMixin, ListAPIView): class UserPermedAssetAccountsApi(SelfOrPKUserMixin, ListAPIView):
serializer_class = serializers.AccountsPermedSerializer serializer_class = serializers.AccountsPermedSerializer
perm_model = AssetPermission
@lazyproperty @lazyproperty
def asset(self): def asset(self):