Re: [Django] #36865: Casting on __exact searches over non-text fields in admin misses indexes (was: Query casting introduced in Django 5.2 makes queries miss DB indexes)

0 views
Skip to first unread message

Django

unread,
Jan 29, 2026, 12:33:02 PM (14 hours ago) Jan 29
to django-...@googlegroups.com
#36865: Casting on __exact searches over non-text fields in admin misses indexes
-------------------------------------+-------------------------------------
Reporter: Mike Lissner | Owner: Mike
| Lissner
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: search_fields cast | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* stage: Accepted => Ready for checkin
* summary: Query casting introduced in Django 5.2 makes queries miss DB
indexes =>
Casting on __exact searches over non-text fields in admin misses
indexes
* version: 6.0 => 5.2

--
Ticket URL: <https://code.djangoproject.com/ticket/36865#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages