#6498: Add case insensitive model ordering
-------------------------------------+-------------------------------------
Reporter: Bastian Kleineidam | Owner: nobody
<calvin@…> | Status: new
Type: New feature | Version: master
Component: Database layer | Resolution:
(models, ORM) | Triage Stage: Accepted
Severity: Normal | Needs documentation: 1
Keywords: | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by shai):
I believe `my_model.objects.all().extra(select={'imf': 'UPPER(my_field)'},
order_by=['imf'])` should work on all core backends.
I am not sure a dedicated API is justified.
--
Ticket URL: <https://code.djangoproject.com/ticket/6498#comment:20>
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/096.2995a5ffdd78957f346cd97da5ed4d64%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.