mirror of https://github.com/jumpserver/jumpserver
parent
135fb7c6f9
commit
c21ca70158
|
@ -52,6 +52,7 @@ class AccountFilterSet(BaseFilterSet):
|
|||
class GatheredAccountFilterSet(BaseFilterSet):
|
||||
node_id = drf_filters.CharFilter(method='filter_nodes')
|
||||
asset_id = drf_filters.CharFilter(field_name='asset_id', lookup_expr='exact')
|
||||
asset_name = drf_filters.CharFilter(field_name='asset__name', lookup_expr='icontains')
|
||||
|
||||
@staticmethod
|
||||
def filter_nodes(queryset, name, value):
|
||||
|
|
Loading…
Reference in New Issue