[Update] Asset filter 添加 platform__base 字段

pull/3993/head
xinwen 2020-05-12 17:09:36 +08:00
parent 16f916c40a
commit eb74d13059
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class AssetViewSet(OrgBulkModelViewSet):
API endpoint that allows Asset to be viewed or edited.
"""
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")
ordering_fields = ("hostname", "ip", "port", "cpu_cores")
serializer_classes = {