﻿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
31587	List filters are selected only for queries with explicit __exact lookups.	Anael Mobilia	nobody	"Hello,

As [https://docs.djangoproject.com/en/3.0/topics/db/queries/#the-pk-lookup-shortcut described on the documentation], there is implicit use of 
{{{
xxx__id__exact
}}}
Equivalents are : 
{{{
xxx_id    # __exact is implied
xxx_pk   # __pk implies __id__exact
}}}

Example app is in attachment.
I generated a link on the contrib.admin (Country admin view) in order to be able to list all people living in a country.
All the following links provides the same correct result (only people living on the country are displayed) :
{{{
        url = '<a href=""{baseurl}?country__id__exact={country}"">Show inhabitants</a>'
        url = '<a href=""{baseurl}?country__id={country}"">Show inhabitants</a>'
        url = '<a href=""{baseurl}?country__pk={country}"">Show inhabitants</a>'
}}}

On the destination admin view (People), I have set a list_filter on Country.

Only the first link select the currently filtered Country on the filter list (on the right of the screen on the People admin view), the two others links doesn't.

As the last two selectors are shortcuts for the fully explicit form, I suggest to have the same render on the filter list (current value is selected/highlighted).

Tested on Django 3.0.6.

Regards"	New feature	closed	contrib.admin	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
