The view_class is available on the view callback, allowing that to be checked, rather than the __name__.