--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2eccab9e-e296-55e0-05de-e8d4cf708262%40dewhirst.com.au.
Hi Mike
RE: The primary use case is to establish case-insensitivity when checking names - including usernames, company names and abbreviations/acronyms.
I dont know anything about db_collation.
Below 4 lookups should solve most common scenarios.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjuxfeV5m4QiPz1jEyh7fRobqZn7SCp4dnXnjrSOBirh7Q%40mail.gmail.com.
-- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can automatically decrypt my signature and be sure it came from me. Your email software can handle signing.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e3d57fb4-5899-a04c-f2b8-f39591c978c7%40dewhirst.com.au.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUju4y_H%2BDUr1qn0Y4eNjYC_o%2BzCe5PNRiLctUZxfos5TSA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUju4y_H%2BDUr1qn0Y4eNjYC_o%2BzCe5PNRiLctUZxfos5TSA%40mail.gmail.com.
Found a great article by Adam Johnson written in February ...
https://adamj.eu/tech/2023/02/23/migrate-django-postgresql-ci-fields-case-insensitive-collation/
NotSupportedErrornondeterministic collations are not supported for LIKE
CreateCollation("case_insensitive",provider="icu",locale="und-u-ks-level2",
deterministic=False,)
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/62ca89e9-f31e-7b78-3e7e-195692a0e728%40dewhirst.com.au.
Hi Mike,
On Tue, Aug 15, 2023 at 4:30 AM Mike Dewhirst <mi...@dewhirst.com.au> wrote:
Found a great article by Adam Johnson written in February ...
https://adamj.eu/tech/2023/02/23/migrate-django-postgresql-ci-fields-case-insensitive-collation/
This is a great reference. It helped me out with the migration from postgresql ci fields to db collations.
Everything about this is new for me as well. I'm sure the db collation strategy is more powerful and I can see the benefits.
However, the postgresql ci fields were way easier to implement.
Right now I'm testing it out on a smaller project. One problem that I'm currently facing is that exposing some fields that have the db_collation configuration to django-filters or to Django Admin search parameters are causing an exception:
NotSupportedErrornondeterministic collations are not supported for LIKE
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ4iidooT7Ei9bkCPT394eA8S_aZfNxBTJ5WSFKTwAmfsgM5YA%40mail.gmail.com.