﻿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
22810	full_result_count optimization is wrong in the presence of custom ListFilters	gwahl@…	nobody	"ChangeList.get_results performs an optimization when counting the total number of results, disregarding list filters. It assumes that if there are no query parameters, the full count is the same as the filtered count. This is incorrect when a custom list filter does filtering when there are no query parameters.

In my case, the list filter filters the objects by default, and removes the filtering with a query parameter. The optimization incorrectly assumes that there is no filtering by default, so the total result count is wrong.

https://github.com/django/django/blob/master/django/contrib/admin/views/main.py#L172, see 'Perform a slight optimization'."	Bug	closed	contrib.admin	1.6	Normal	fixed			Accepted	1	0	0	0	0	0
