fix process_view with view_func check if it has __name__ attribute