#26001: Make ModelAdmin.search_fields raise data errors on __exact lookups for 
non-
string fields.
--------------------------------------+------------------------------------
     Reporter:  Tim Graham            |                    Owner:  (none)
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.admin         |                  Version:  dev
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by mishachernyshov):

 Replying to [comment:11 Mariusz Felisiak]:
 > #34191 was a duplicate for `DecimalField`.
 You can use __iexact instead of __exact for non-string fields, I think, it
 even makes sense, because the word `exact` means complete equality even
 with type. It works for me.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/26001#comment:12>
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/0107018541598652-dc7344fb-d655-4eef-b347-c194b2f24a83-000000%40eu-central-1.amazonses.com.

Reply via email to