Opened 9 years ago
Closed 9 years ago
#25599 closed Bug (invalid)
__iexact filter matches strings of different length
Description (last modified by ) ¶
I would expect that the iexact filter for querying models only results in string matches that possibly differ in case, however, it also matches prefixes...
MyModel.objects.filter(name__iexact='king').all() [<MyModel: KING>, <MyModel: King of Spain>, <MyModel: King of Holland>]
This looks more like icontains to me... I expected only [<MyModel: KING>]
Change History (3)
comment:1 by , 9 years ago
Type: | Uncategorized → Bug |
---|
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
comment:3 by , 9 years ago
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
What database are you using?