mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-16 05:14:33 +00:00
Merge pull request #3992 from jumpserver/update-assets-filter
Update assets filter
This commit is contained in:
commit
16f916c40a
@ -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")
|
filter_fields = ("hostname", "ip", "systemuser__id", "admin_user__id", "platform__name")
|
||||||
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…
Reference in New Issue
Block a user