﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34593	Django admin list does same Count query twice when there are no filters	Alex	Alex	"The issue is due to this code:


{{{
        # Get the number of objects, with admin filters applied.
        result_count = paginator.count  # First count() query

        # Get the total number of objects, with no admin filters applied.
        if self.model_admin.show_full_result_count:
            full_result_count = self.root_queryset.count()  # Second count() query
        else:
            full_result_count = None
}}}

When the there are no filters, the same query is done for {{{ result_count }}} and {{{ full_result_count }}} and the value will always be the same."	Cleanup/optimization	closed	contrib.admin	dev	Normal	wontfix		Simon Charette	Unreviewed	1	0	0	0	0	0
