mirror of https://github.com/jumpserver/jumpserver
fix: 个别页面搜索不生效的问题
parent
c7c379479f
commit
4582aa0a09
|
@ -20,8 +20,8 @@ __all__ = [
|
||||||
class AutomationAssetsListApi(generics.ListAPIView):
|
class AutomationAssetsListApi(generics.ListAPIView):
|
||||||
model = BaseAutomation
|
model = BaseAutomation
|
||||||
serializer_class = serializers.AutomationAssetsSerializer
|
serializer_class = serializers.AutomationAssetsSerializer
|
||||||
filter_fields = ("name", "address")
|
filterset_fields = ("name", "address")
|
||||||
search_fields = filter_fields
|
search_fields = filterset_fields
|
||||||
|
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
pk = self.kwargs.get('pk')
|
pk = self.kwargs.get('pk')
|
||||||
|
|
Loading…
Reference in New Issue