#31777: Custom collations
-------------------------------------+-------------------------------------
     Reporter:  Tom Carrick          |                    Owner:  Tom
                                     |  Carrick
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tom Carrick):

 * has_patch:  0 => 1


Old description:

> Mailing list, but it didn't get any responses:
> https://groups.google.com/u/2/g/django-developers/c/djMQwwxtCVY
>
> We have the various CI fields on postgres, but these are
> [https://www.postgresql.org/docs/12/citext.html discouraged] since pg12
> in favour of [https://www.postgresql.org/docs/12/collation.html
> nondeterministic collations]. I think it'd be useful to have a way to do
> this in Django, though I'm not sure what the API would look like. My
> initial thought, knowing very little about the ORM, is a `Collation`
> class that can be passed into a model field, but I'm not sure.

New description:

 Mailing list, but it didn't get any responses:
 https://groups.google.com/u/2/g/django-developers/c/djMQwwxtCVY

 We have the various CI fields on postgres, but these are
 [https://www.postgresql.org/docs/12/citext.html discouraged] since pg12 in
 favour of [https://www.postgresql.org/docs/12/collation.html
 nondeterministic collations]. I think it'd be useful to have a way to do
 this in Django, though I'm not sure what the API would look like. My
 initial thought, knowing very little about the ORM, is a `Collation` class
 that can be passed into a model field, but I'm not sure.

 [https://github.com/django/django/pull/13207 PR]

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31777#comment:7>
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.313c78ce0ac9a9ca2644960a3b43c290%40djangoproject.com.

Reply via email to