Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lovelydinosaur
Copy link
Contributor

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'.

lovelydinosaur added a commit that referenced this pull request Dec 13, 2014
…izer-errors

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