#30925: Missing queryset filter operator leads to extra operator use
-------------------------------------+-------------------------------------
Reporter: golways | Owner: nobody
Type: New | Status: new
feature |
Component: Database | Version: 2.2
layer (models, ORM) |
Severity: Normal | Keywords: QuerySet.extra
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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
--
Ticket URL: <https://code.djangoproject.com/ticket/30925>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.fcba280b9e3bf601d1930c0cf82e44ac%40djangoproject.com.