mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Fix pagination logic for detecting QuerySets
This commit is contained in:
parent
e4c06700bb
commit
1be5cf8184
@ -97,7 +97,7 @@ class OptionalLimitOffsetPagination(LimitOffsetPagination):
|
||||
|
||||
def paginate_queryset(self, queryset, request, view=None):
|
||||
|
||||
if type(queryset) is QuerySet:
|
||||
if isinstance(queryset, QuerySet):
|
||||
self.count = queryset.count()
|
||||
else:
|
||||
# We're dealing with an iterable, not a QuerySet
|
||||
|
Loading…
Reference in New Issue
Block a user