Only register callable items in lists
authorIan Cordasco <graffatcolmingov@gmail.com>
Mon, 1 Oct 2012 17:09:02 +0000 (13:09 -0400)
committerRadu Voicilas <radu.voicilas@gmail.com>
Mon, 8 Oct 2012 21:42:49 +0000 (00:42 +0300)
commit4e6cf21d8231b28a9bbfdd94392137255e434033
tree63f588b0a534a22b14b347e76ee991a2d0633b04
parent46fd297c3ac903793a99fd9712f04d747a027538
Only register callable items in lists

Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.
requests/models.py
tests/test_requests.py