I have disclosed in both of this links my problem
I can find how to use DRF to filter something like this SQL =
WHERE ( something = 1 OR something = 2 OR something = 3 )
django drf doesn’t seem capable of doing it. not sure how to do.
I have disclosed in both of this links my problem
I can find how to use DRF to filter something like this SQL =
WHERE ( something = 1 OR something = 2 OR something = 3 )
django drf doesn’t seem capable of doing it. not sure how to do.
This isn’t strictly speaking a DRF issue.
Django allows you to create a queryset containing logical OR
conditions by using the Q
objects. See Complex lookups with Q objects.