Opened 5 years ago
Last modified 5 years ago
#30925 closed New feature
Missing queryset filter operator leads to extra operator use — at Version 1
Reported by: | golways | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 2.2 |
Severity: | Normal | Keywords: | QuerySet.extra |
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 )
Hi,
startof / istartof / endof / iendof operators are missing.
In my project, I would need to use something like:
.filter(attr\_\_istartof= myVar)
Since istartof is missing, I do:
.extra(where=["%s ILIKE attr||'%%'"], params=[myVar])
Thanks for your great job with Django !
Regards,
Franck
Note:
See TracTickets
for help on using tickets.