#30925: Missing queryset filter operator leads to extra operator use
-------------------------------------+-------------------------------------
     Reporter:  golways              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  2.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  QuerySet.extra       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by golways:

Old description:

> 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

New description:

 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#comment:1>
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/065.789f0d4f9beb6cd73281ce9b02583186%40djangoproject.com.

Reply via email to