#23423: Integrate unaccent lookups in django.contrib.postgres
----------------------------------+--------------------------------------
Reporter: tchaumeny | Owner:
Type: New feature | Status: new
Component: contrib.postgres | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by tchaumeny):
* needs_docs: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_better_patch: => 0
Old description:
> After the introduction of the `Lookup` API in Django 1.7, I believe that
> `django.contrib.postgres` could benefit from some custom lookups based on
> the `unaccent` extension of PostgreSQL (see
> http://www.postgresql.org/docs/9.3/static/unaccent.html). That kind of
> feature would be very helpful for a lot of people in latin countries, and
> the existing solutions are not very clean (and do not make use of the new
> API).
>
> The way I see it, `unaccent` would be a sub-application within
> `django.contrib.postgres` which should be enabled for the lookups to be
> active (that requires postgres >= 9.0).
New description:
After the introduction of the `Lookup` API in Django 1.7, I believe that
`django.contrib.postgres` could benefit from some custom lookups based on
the unaccent extension of PostgreSQL (see
http://www.postgresql.org/docs/9.3/static/unaccent.html). That kind of
feature would be very helpful for a lot of people in latin countries, and
the existing solutions seems not very clean (and do not make use of the
new API).
--
Comment:
I tried something using `Tranform`, as it looks like it was made for that
kind of things:
https://github.com/tchaumeny/django/commit/cb3d7808c20094636bacb0576bc738ee466d256a
--
Ticket URL: <https://code.djangoproject.com/ticket/23423#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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.45cb5b6b5c38fa930b0546555b5b690b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.