I have a product model Like:
class Product(models.Model):
name = models.CharField(max_length=100)
#other attributes
varients=models.ManyToManyField('Product', blank=True,related_name='color_varients')
alsoBuy=models.ManyToManyField('Product', blank=True,related_name='similar_varients')
Now my question is how to make product serializer. I want varients and other product filed included into it properly(Not just id).