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

12 lines
273 B
Python

from assets.models import Database
from .common import AssetSerializer
__all__ = ['DatabaseSerializer']
class DatabaseSerializer(AssetSerializer):
class Meta(AssetSerializer.Meta):
model = Database
fields = AssetSerializer.Meta.fields + ['db_name']