jumpserver/apps/assets/serializers/asset/cloud.py

17 lines
400 B
Python
Raw Normal View History

2022-09-01 06:46:31 +00:00
from assets.models import Cloud
from .common import AssetSerializer
__all__ = ['CloudSerializer']
class CloudSerializer(AssetSerializer):
class Meta(AssetSerializer.Meta):
model = Cloud
2022-09-21 03:17:14 +00:00
fields = AssetSerializer.Meta.fields
extra_kwargs = {
**AssetSerializer.Meta.extra_kwargs,
'address': {
'label': 'URL'
}
}