AssertionError: `HyperlinkedIdentityField` requires the request in the serializer context, again
Closed this issue · 3 comments
jrwiegand commented
I am having the same problem as the closed issue and I have created the context. Just for a little extra information I am using Python3.4.
CarlosBorroto commented
Ran into the same issue. It seems the blog post needs to be updated for the post
serializing example.
From:
PostSerializer(post).data
To:
PostSerializer(post, context=context).data
jrwiegand commented
Thank you. This worked great.
kevinastone commented
Updated, thanks.