Skip to content
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

When validating input prevent serializer.data being accessed until .is_valid() is called. #2291

Merged
merged 1 commit into from Dec 17, 2014

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Dec 17, 2014

Closes #2289.

If data= is passed then ensure that user cannot access .serializer.data without first calling .is_valid()

@tomchristie tomchristie added this to the 3.0.2 Release milestone Dec 17, 2014
tomchristie added a commit that referenced this pull request Dec 17, 2014
@tomchristie tomchristie merged commit 76cfc5e into master Dec 17, 2014
@tomchristie tomchristie deleted the serializer-api-restrictions branch Dec 17, 2014
@tomchristie tomchristie changed the title Serializer API restrictions. When validating input prevent serializer.data being accessed until .is_valid() is called. Dec 17, 2014
@pzrq
Copy link
Contributor

pzrq commented Dec 18, 2014

Looks like it does the job, thanks @tomchristie

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

Successfully merging this pull request may close these issues.

2 participants