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

Better errors when serializer has incorrectly named field. #2267

Merged
merged 2 commits into from Dec 13, 2014

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Dec 13, 2014

Closes #2262. (Note that we're dealing with this generally for serializer instances, not specifically for ModelSerializers)

Example:

Got AttributeError when attempting to get a value for field incorrect_name on serializer ExampleSerializer.
The serializer field might be named incorrectly and not match any attribute or key on the ExampleObject instance.
Original exception text was: ExampleObject instance has no attribute 'incorrect_name'.

@tomchristie tomchristie added this to the 3.0.2 Release milestone Dec 13, 2014
tomchristie added a commit that referenced this pull request Dec 13, 2014
…izer-errors

Better errors when serializer has incorrectly named field.
@tomchristie tomchristie merged commit dd712a1 into master Dec 13, 2014
@tomchristie tomchristie deleted the better-misconfigured-serializer-errors branch Dec 13, 2014
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.

Better errors when serializer has incorrectly named field.
1 participant