def get_model_front_url(request, object):
 if (not object.pk):
  return None
 if (u'shuup.front' in settings.INSTALLED_APPS):
  try:
   from shuup.front.template_helpers.urls import model_url
   return model_url({u'request': request}, object)
  except (ValueError, NoReverseMatch):
   pass
 return None

def get_model_front_url ( request , object ) : if ( not object . pk ) : return None if ( u'shuup.front' in settings . INSTALLED_APPS ) : try : from shuup . front . template_helpers . urls import model_url return model_url ( { u'request' : request } , object ) except ( ValueError , NoReverseMatch ) : pass return None
get a frontend url for an object .