#NEWLINE# def get_model_view_url_name( model , view_name , with_admin_namespace = True ) : #NEWLINE# #INDENT# "\n    Return url name for model additional view (site). Example:\n    >>> get_model_view_url_name(DataCenterAsset, 'attachment')\n    'admin:data_center_datacenterasset_attachment'\n    " #NEWLINE# params = ( model . _meta . app_label , model . _meta . model_name ) #NEWLINE# url = '{}_{}_{view_name}' . format ( * params , view_name = view_name ) #NEWLINE# if with_admin_namespace : #NEWLINE# #INDENT# url = ( 'admin:' + url ) #NEWLINE# #UNINDENT# return url