Browse Source

perf: user perm (#9329)

Co-authored-by: feng <1304903146@qq.com>
pull/9330/head
fit2bot 2 years ago committed by GitHub
parent
commit
f54edab172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/perms/api/user_permission/accounts.py

3
apps/perms/api/user_permission/accounts.py

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

Loading…
Cancel
Save