mirror of https://github.com/jumpserver/jumpserver
15 lines
356 B
Python
15 lines
356 B
Python
|
|
from assets.models import Web
|
|
from .common import AssetSerializer
|
|
|
|
__all__ = ['WebSerializer']
|
|
|
|
|
|
class WebSerializer(AssetSerializer):
|
|
class Meta(AssetSerializer.Meta):
|
|
model = Web
|
|
fields = AssetSerializer.Meta.fields + [
|
|
'url', 'autofill', 'username_selector',
|
|
'password_selector', 'submit_selector'
|
|
]
|