#34402: Admin search_fields crashes for inherited model and __iexact lookup.
--------------------------------+-----------------------------------------
     Reporter:  Pavel PanĨocha  |                    Owner:  Rahmat Faisal
         Type:  Bug             |                   Status:  assigned
    Component:  contrib.admin   |                  Version:  3.2
     Severity:  Normal          |               Resolution:
     Keywords:                  |             Triage Stage:  Accepted
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+-----------------------------------------

Comment (by Sarah Boyce):

 Can you not define the search_fields here to be `payer_ptr__pk__iexact`
 (as you would when constructing a filter)?
 I feel like transforming the query for the `search_fields` might be
 surprising as this error is consistent as to if you were to do this with
 `.filter`.

 (If we want this transforming behaviour I have a patch ready, just not
 convinced it's what we want)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34402#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018aa4a6c6a5-bb3a4c2a-08dd-4a7d-a821-52568eda75e7-000000%40eu-central-1.amazonses.com.

Reply via email to