diff --git a/ninja/pagination.py b/ninja/pagination.py index 98a93efb..a677a66f 100644 --- a/ninja/pagination.py +++ b/ninja/pagination.py @@ -48,7 +48,7 @@ def _items_count(self, queryset: QuerySet) -> int: """ try: # forcing to find queryset.count instead of list.count: - return queryset.all().count() + return queryset.all().count() # type: ignore except AttributeError: return len(queryset)