I have an api with ?ordering=name,type
I want both the name and the type to be as case-insensitive
class IngredientListAPIView(ListAPIView):
queryset = Ingredient.objects.all()
serializer_class = IngredientListSerializer
filter_backends = [OrderingFilter]
got the solution from
https://github.com/encode/django-rest-framework/issues/3280
then use it in the ListView