I want to create a many-to-many relationship where one person can be in many clubs and one club can have many persons. I added the models.py and
many-to-many
models.py
You may simply solve it by changing the instantiation (in views.py) to thing like this:
your_serializer = YourModelSerializer(YourQuerySet_or_object, many=True,context={'request':request})