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.
16 lines
391 B
16 lines
391 B
2 years ago
|
|
||
2 years ago
|
from assets.serializers import DeviceSerializer
|
||
2 years ago
|
from assets.models import Device
|
||
2 years ago
|
from .asset import AssetViewSet
|
||
|
|
||
2 years ago
|
__all__ = ['DeviceViewSet']
|
||
2 years ago
|
|
||
|
|
||
2 years ago
|
class DeviceViewSet(AssetViewSet):
|
||
|
model = Device
|
||
2 years ago
|
|
||
|
def get_serializer_classes(self):
|
||
|
serializer_classes = super().get_serializer_classes()
|
||
2 years ago
|
serializer_classes['default'] = DeviceSerializer
|
||
2 years ago
|
return serializer_classes
|