[Answered ]-Dynamic serializer Django REST: "AttributeError: 'Serializer' object has no attribute 'pk'"

1👍

This issue is caused by this line:

super().__init__(self, *args, **kwargs)

You need to remove self:

super().__init__(*args, **kwargs)

Leave a comment