tomchristie/django-rest-framework — pull request #657 by dgaus (2013-02-14 02:37:16+00:00)
Title: Make is_simple_callable consider default arguments

I wanted to list all user permissions using get_all_permissions, which has an optional argument 'obj', but is_simple_callable was returning False. Therefore I modified this function to consider the amount of default arguments as well.