#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 garrypolley):

 I'd expect this python

 {{{#!python
 my_model.objects.all().order_by('my_field_iexact')
 }}}

 to become this SQL

 {{{#!sql
 SELECT * FROM my_model ORDER BY LOWER(my_field);
 }}}

 I'm also fine using UPPER, I'm not too particular either way.  Seems most
 people in raw SQL prefer UPPER.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/6498#comment:16>
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.2bc19ab5d0f882600174ca50d871a568%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to