Changes between Initial Version and Version 5 of Ticket #34402
- Timestamp:
- Mar 14, 2023, 9:55:03 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34402
- Property Triage Stage Unreviewed → Accepted
- Property Summary Admin searchfields for inherited model → Admin search_fields crashes for inherited model and __iexact lookup.
-
Ticket #34402 – Description
initial v5 28 28 }}} 29 29 30 Guess what? The "id" variant works ok and the "pk" fails with 30 Guess what? The "id" variant works ok and the "pk" fails with `Related Field got invalid lookup: iexact` 31 31 32 32 Why? Because in `construct_search` ([[https://github.com/django/django/blob/4b1bfea2846f66f504265cec46ee1fe94ee9c98b/django/contrib/admin/options.py#L1123|See Git]]) it's transformed to `pk__iexact__icontains` as it found out that the `pk` is `payer_ptr` which is FK.