Merge pull request #3993 from jumpserver/update-assets-filter

[Update] Asset filter 添加 platform__base 字段
pull/3994/head
xinwen 5 years ago committed by GitHub
commit 6e5e340a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,7 +33,7 @@ class AssetViewSet(OrgBulkModelViewSet):
API endpoint that allows Asset to be viewed or edited. API endpoint that allows Asset to be viewed or edited.
""" """
model = Asset model = Asset
filter_fields = ("hostname", "ip", "systemuser__id", "admin_user__id", "platform__name") filter_fields = ("hostname", "ip", "systemuser__id", "admin_user__id", "platform__base")
search_fields = ("hostname", "ip") search_fields = ("hostname", "ip")
ordering_fields = ("hostname", "ip", "port", "cpu_cores") ordering_fields = ("hostname", "ip", "port", "cpu_cores")
serializer_classes = { serializer_classes = {

Loading…
Cancel
Save