You can create a migration file and create index by sql.
On Mon, Jun 6, 2016 at 8:21 PM, Neto <paulosouzamaciel@gmail.com> wrote:
It does not works:--from django.db.models.functions import Lower
class Person(models.Model):
name = models.CharField(_('name'), max_length=100)
class Meta:
ordering = [Lower('name')]
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/07398d69-2af5-4dad-9bf9-0eb32248e65f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACrQMYob%3Diu2K-NWoEn3XgESDPGMeHszODGHrV%3D4jHtOUjADNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment