def get_view_name(view_cls, suffix=None):
 name = view_cls.__name__
 name = formatting.remove_trailing_string(name, u'View')
 name = formatting.remove_trailing_string(name, u'ViewSet')
 name = formatting.camelcase_to_spaces(name)
 if suffix:
  name += (u' ' + suffix)
 return name

def get_view_name ( view_cls , suffix = None ) : name = view_cls . __name__ name = formatting . remove_trailing_string ( name , u'View' ) name = formatting . remove_trailing_string ( name , u'ViewSet' ) name = formatting . camelcase_to_spaces ( name ) if suffix : name += ( u' ' + suffix ) return name
given a view class .