2022-08-23 02:23:48 +00:00
|
|
|
|
|
|
|
from assets.serializers import HostSerializer
|
2022-08-30 09:29:54 +00:00
|
|
|
from assets.models import Networking
|
2022-08-23 02:23:48 +00:00
|
|
|
from .asset import AssetViewSet
|
|
|
|
|
|
|
|
__all__ = ['NetworkViewSet']
|
|
|
|
|
|
|
|
|
|
|
|
class NetworkViewSet(AssetViewSet):
|
2022-08-30 09:29:54 +00:00
|
|
|
model = Networking
|
2022-08-23 02:23:48 +00:00
|
|
|
|
|
|
|
def get_serializer_classes(self):
|
|
|
|
serializer_classes = super().get_serializer_classes()
|
|
|
|
serializer_classes['default'] = HostSerializer
|
|
|
|
return serializer_classes
|