#23493: Defining bilateral lookup transformations
----------------------------------------------+--------------------
     Reporter:  tchaumeny                     |      Owner:  nobody
         Type:  Uncategorized                 |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  1
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 With the current `Transform` API, transformations are applied to the left-
 hand side of the lookup only.

 For instance, if you define some unaccent `Transform` performing the SQL
 operation `UNACCENT(...)`, the query below won't return an `Author` with
 first name Jérémie. Actually, it won't ever return anything.
 {{{
 Author.objects.filter(first_name__unaccent__iexact="Jérémie")
 }}}

 I think it would be great to be able to define custom transformations
 which would apply to both sides of the lookup. This would be particularly
 helpful when you want to perform some lookup insensitive to some SQL
 transformation (unaccent or other).

--
Ticket URL: <https://code.djangoproject.com/ticket/23493>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.4b401b2b00155741f33bed3448f3464c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to