mirror of https://github.com/jumpserver/jumpserver
Merge pull request #14010 from jumpserver/pr@dev@view_asset
perf: View asset mini api add domain platform fieldpull/14029/head
commit
6b9fa6e01f
|
@ -131,9 +131,9 @@ class AssetSerializer(BulkOrgResourceModelSerializer, ResourceLabelsMixin, Writa
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Asset
|
model = Asset
|
||||||
fields_mini = ['id', 'name', 'address']
|
|
||||||
fields_small = fields_mini + ['is_active', 'comment']
|
|
||||||
fields_fk = ['domain', 'platform']
|
fields_fk = ['domain', 'platform']
|
||||||
|
fields_mini = ['id', 'name', 'address'] + fields_fk
|
||||||
|
fields_small = fields_mini + ['is_active', 'comment']
|
||||||
fields_m2m = [
|
fields_m2m = [
|
||||||
'nodes', 'labels', 'protocols',
|
'nodes', 'labels', 'protocols',
|
||||||
'nodes_display', 'accounts',
|
'nodes_display', 'accounts',
|
||||||
|
|
Loading…
Reference in New Issue