mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
371 B
14 lines
371 B
4 months ago
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
|
from common.api import GenericViewSet
|
||
|
from rest_framework.mixins import CreateModelMixin
|
||
|
from common.permissions import IsValidUser
|
||
|
from ..serializers import MyAssetSerializer
|
||
|
|
||
|
__all__ = ['MyAssetViewSet']
|
||
|
|
||
|
|
||
|
class MyAssetViewSet(CreateModelMixin, GenericViewSet):
|
||
|
serializer_class = MyAssetSerializer
|
||
|
permission_classes = (IsValidUser,)
|