I think it would be useful to be able to create collations and use them with model fields. The motivation here is mostly that citext is somewhat discouraged <https://www.postgresql.org/docs/12/citext.html> in favour of creating a collation. I'm not sure how this would work on other databases,or what the API would look like. I didn't see a ticket for it or another discussion, but maybe there is one.
Perhaps a Collation class would make sense, and it could be added to a Field with a new parameter. I'm not sure how easy it would be to only create a collation once, so perhaps it would need a CreateCollation migration as well, but I know very little about the internals of migrations. Cheers, Tom -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAHoz%3DMYpkS5-rPAUQ3sVg-Yahb%3D6B%2BT4ndP5PGOJrBE3iEgzPQ%40mail.gmail.com.