def current_request_has_associated_site_theme():
 request = get_current_request()
 site_theme = getattr(request, 'site_theme', None)
 return bool((site_theme and site_theme.id))

def current_request_has_associated_site_theme ( ) : request = get_current_request ( ) site_theme = getattr ( request , 'site_theme' , None ) return bool ( ( site_theme and site_theme . id ) )
true if current request has an associated sitetheme .