AssertionError: `HyperlinkedIdentityField` requires the request in the serializer context

后端 未结 7 1959
陌清茗
陌清茗 2021-01-31 03:22

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

7条回答
  •  轮回少年
    2021-01-31 04:01

    I came across the same problem. My approach is to remove 'url' from Meta.fields in serializer.py.

提交回复
热议问题