kevinastone/django-api-rest-and-angular

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

Closed this issue · 3 comments

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.

Proof

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

Thank you. This worked great.

Updated, thanks.