Suppose I have a model like this one:
class Car(models.Model): images = models.ManyToManyField(Image) class Image(models.Model): path = models.CharF
I have found a other Stackoverflow question that has a solution that could be used here:
How can I apply a filter to a nested resource in Django REST framework?
(see under the "Solution" headline in the question itself)