Skip to content

AssertionError: HyperlinkedIdentityField requires the request in the serializer context, again #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jrwiegand opened this issue Mar 4, 2015 · 3 comments

Comments

@jrwiegand
Copy link

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

@CarlosBorroto
Copy link

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
Copy link
Author

Thank you. This worked great.

@kevinastone
Copy link
Owner

Updated, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants