Here is my models
class Mediums(models.Model):
medium_name = models.CharField(max_length=255)
class Artwork(models.Model):
title = models.CharField(max_length=255, blank=True, null=True)
mediums = models.ManyToManyField(Mediums, blank=True, related_name="artwork")
class Meta:
db_table = 'artwork'
I am using django-reft-framework .
How can i fetch artwork by filtering multiple medium_id. I checked drf doc could not find option to filter ManyToManyField
Pse take a look