Changes between Initial Version and Version 1 of Ticket #26001, comment 9
- Timestamp:
- Jun 30, 2020, 7:12:40 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26001, comment 9
initial v1 3 3 4 4 We have to consider that there might be multiple search fields of mixed types though, i.e. `search_fields = ['votes__exact', 'title', 'text__contains']`, just so the matches for other fields does not get discarded just because one of the fields threw an error. 5 6 Instead of trying to catch these errors from `.filter()` as in the previous patch, we could run `to_python()` for each search field in order to test if that particular field would raise an exception later on when the query is run.