Skip to content

Commit e5abbe8

Browse files
robhudsontoastdriven
authored andcommitted
Fixed full_result_count in admin search results
1 parent 4b67f55 commit e5abbe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_results(self, request):
3333
paginator = Paginator(sqs, self.list_per_page)
3434
# Get the number of objects, with admin filters applied.
3535
result_count = paginator.count
36-
full_result_count = result_count
36+
full_result_count = SearchQuerySet().models(self.model).all().count()
3737

3838
can_show_all = result_count <= MAX_SHOW_ALL_ALLOWED
3939
multi_page = result_count > self.list_per_page

0 commit comments

Comments
 (0)