Tuesday, October 28, 2014

Charfield case insensitive sorting in Model Admin

Hi,

I am using Django 1.7 on Python 3.4 and quite new to both Django and Python.

I would like to sort a name field (Charfield) in ModelAdmin view in case-insensitive way. The default sorting is case-sensitive.

How could I sort it in case-insensitive?

Thanks in advance.

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2d36c9ad-ab6a-4d23-9d6b-41ce64d35252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment