Re: Admin case-insensitive sorting question

2018-01-10 Thread Mike Dewhirst
ednesday, January 10, 2018 1:03 AM To: Django users Subject: Admin case-insensitive sorting question I have tried every which way to produce a case-insenstive list of substances in the Admin including this: def get_queryset(self, request):       return super(SubstanceAdmin, self).get_queryset(

Re: Admin case-insensitive sorting question

2018-01-10 Thread Mike Dewhirst
mailto:django-users@googlegroups.com] On Behalf Of Mike Dewhirst Sent: Wednesday, January 10, 2018 1:03 AM To: Django users Subject: Admin case-insensitive sorting question I have tried every which way to produce a case-insenstive list of substances in the Admin including this: def get_que

RE: Admin case-insensitive sorting question

2018-01-10 Thread Matthew Pava
users Subject: Admin case-insensitive sorting question I have tried every which way to produce a case-insenstive list of substances in the Admin including this: def get_queryset(self, request):     return super(SubstanceAdmin, self).get_queryset(request).order_by(Lower('name').asc()) W

Admin case-insensitive sorting question

2018-01-09 Thread Mike Dewhirst
I have tried every which way to produce a case-insenstive list of substances in the Admin including this: def get_queryset(self, request):     return super(SubstanceAdmin, self).get_queryset(request).order_by(Lower('name').asc()) Which DOES work (as proven via print statement) but doesn't dis