mirror of https://github.com/jumpserver/jumpserver
12 lines
273 B
Python
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']
|