#6498: Add case insensitive model ordering
-------------------------------------+-------------------------------------
Reporter: Bastian Kleineidam | Owner: nobody
<calvin@…> |
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):
* status: new => closed
* resolution: => fixed
Comment:
Yes, I think it's addressed in Django 1.8 with the ability to `order_by()`
[https://docs.djangoproject.com/en/dev/ref/models/expressions/
expressions]. For example:
{{{
>>> from django.db.models.functions import Lower
>>> MyModel.objects.order_by(Lower('myfield'))
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/6498#comment:24>
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.693767dc884d1493f8f5b4b7a772f8c7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.