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(
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
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
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
4 matches
Mail list logo