tomchristie/django-rest-framework — pull request #2267 by tomchristie (2014-12-13 15:00:53+00:00)
Title: Better errors when serializer has incorrectly named field.

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