mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-12 19:37:29 +00:00
fix: ES no data found
This commit is contained in:
parent
1a01c0537c
commit
ee8a2afe16
@ -127,7 +127,7 @@ class QuerySetMixin:
|
|||||||
def paginate_queryset(self, queryset):
|
def paginate_queryset(self, queryset):
|
||||||
page = super().paginate_queryset(queryset)
|
page = super().paginate_queryset(queryset)
|
||||||
model = getattr(queryset, 'model', None)
|
model = getattr(queryset, 'model', None)
|
||||||
if not model:
|
if not model or not hasattr(page, 'objects'):
|
||||||
return page
|
return page
|
||||||
|
|
||||||
serializer_class = self.get_serializer_class()
|
serializer_class = self.get_serializer_class()
|
||||||
|
Loading…
Reference in New Issue
Block a user