Fixed #23055 -- Made generic admin filter obey ModelAdmin queryset.

Thanks to Trac user synasius and Ola Sitarska for helping in identifying
the issue and helping with the test case.
The test fails on non-sqlite, probably because of PKs not being reused.