mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-04-27 19:17:01 +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):
|
||||
page = super().paginate_queryset(queryset)
|
||||
model = getattr(queryset, 'model', None)
|
||||
if not model:
|
||||
if not model or not hasattr(page, 'objects'):
|
||||
return page
|
||||
|
||||
serializer_class = self.get_serializer_class()
|
||||
|
Loading…
Reference in New Issue
Block a user