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

12 lines
273 B
Python
Raw Normal View History

2022-09-01 06:46:31 +00:00
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']