jfinkels/flask-restless — pull request #257 by Svenito (2013-10-11 11:51:46+00:00)
Title: Method check with include_methods

Fixes a problem when accessing a relation.
For example having a user endpoint with include_method 'first_computer' and then accessing

/api/users/1/computers

will throw an AttributeError when trying to get the 'first_computer' attr from computer. This happens because we are getting at it via /api/users.

This patch checks the attribute exists on the instance to prevent the exception.