Rick Elrod 87f729c642
[FieldLookupBackend] limit iexact to string fields (#12569)
Change:
- Case-insensitive search only makes sense on strings, so check the
  type of the field we are searching and ensure it is a string field
  (TextField, CharField, or some subclass thereof).

- This prevents a 500 error when a user uses iexact on, e.g., an
  integer field. Now, a 400 Bad Request is returned instead.

Test Plan:
- Added simple unit tests for iexact

Tickets:
- Fixes #9222

Signed-off-by: Rick Elrod <rick@elrod.me>
2022-07-26 12:46:50 -05:00
..
2016-12-09 14:19:41 -05:00
2015-06-11 16:10:23 -04:00
2022-03-07 18:11:36 -05:00
2022-03-07 18:11:36 -05:00
2015-06-11 16:10:23 -04:00
2022-03-07 18:11:36 -05:00
2021-03-25 15:23:52 -04:00