Skip to content

Commit

Permalink
Merge 00e7b9c into b63ddd6
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Dec 14, 2023
2 parents b63ddd6 + 00e7b9c commit 38861ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions import_export/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,18 @@ def get_export_queryset(self, request):
changelist_kwargs["sortable_by"] = self.sortable_by
if django.VERSION >= (4, 0):
changelist_kwargs["search_help_text"] = self.search_help_text

original_show_full_result_count = self.show_full_result_count
self.show_full_result_count = False

class FakePaginator:
count = 0

original_get_paginator = self.get_paginator
self.get_paginator = lambda request, queryset, per_page: FakePaginator()
cl = ChangeList(**changelist_kwargs)
self.show_full_result_count = original_show_full_result_count
self.get_paginator = original_get_paginator

return cl.get_queryset(request)

Expand Down

0 comments on commit 38861ef

Please sign in to comment.