Opened 7 years ago

Closed 7 years ago

#25599 closed Bug (invalid)

__iexact filter matches strings of different length

Reported by: Arvid Halma Owned by: nobody
Component: Database layer (models, ORM) Version: 1.8
Severity: Normal Keywords: iexact, filter, query, model
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Arvid Halma)

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: 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 Changed 7 years ago by Arvid Halma

Type: UncategorizedBug

comment:2 Changed 7 years ago by Tim Graham

Description: modified (diff)

What database are you using?

comment:3 Changed 7 years ago by Arvid Halma

Description: modified (diff)
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top