You can create a migration file and create index by sql.

https://docs.djangoproject.com/ja/1.9/ref/migration-operations/#django.db.migrations.operations.RunSQL

On Mon, Jun 6, 2016 at 8:21 PM, Neto <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> 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
> <https://groups.google.com/d/msgid/django-users/07398d69-2af5-4dad-9bf9-0eb32248e65f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ezequiel Bertti

https://telegram.me/ebertti
https://twitter.com/ebertti
https://github.com/ebertti

-- 
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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to