Since Django 1.8 it is possible with:
from django.db.models.functions import Lower
MyModel.objects.order_by(Lower('myfield'))
More Related Contents:
- How to query Case-insensitive data in Django ORM?
- Issue with ManyToMany Relationships not updating immediately after save
- How to view corresponding SQL query of the Django ORM’s queryset?
- Why does django’s prefetch_related() only work with all() and not filter()?
- Select DISTINCT individual columns in django?
- How to rename items in values() in Django?
- Django: implementing JOIN using Django ORM?
- Chaining multiple filter() in Django, is this a bug?
- List field in model?
- Default image for ImageField in Django’s ORM
- Django ORM: Group by and Max
- Django: ManyToMany filter matching on ALL items in a list
- How to use custom manager with related objects?
- Django queryset get exact manytomany lookup [duplicate]
- Creating Partial Indexes with Django 1.7
- Saving Many To Many data via a modelform in Django
- Applying bootstrap styles to django forms
- Using a UUID as a primary key in Django models (generic relations impact)
- Django ManyToMany filter()
- How do I deal with this race condition in django?
- Limit foreign key choices in select in an inline form in admin
- Using Heroku for Django Media Files
- Django’s self.client.login(…) does not work in unit tests
- Django “xxxxxx Object” display customization in admin action sidebar
- Django ManyToMany model validation
- Django – Overriding the Model.create() method?
- How to create a Django queryset filter comparing two date fields in the same model
- Multiple images per Model
- Redirect on admin Save
- Effects of changing Django’s SECRET_KEY