Skip to content

Commit

Permalink
Merge cfbbed9 into b63ddd6
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Dec 14, 2023
2 parents b63ddd6 + cfbbed9 commit cc04969
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions import_export/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,17 @@ 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 cc04969

Please sign in to comment.