testing that the (decorated) view is not callable before taking the klass param

Hi,
Found this bug while implementing CORS on an existing API. In this case, the view is the cors._preflight_view function that needs a request parameter. Just read the comment "(if the view argument isn't a callable)" to find that the add test was needed for all kind of situations...