def render_price_property(request, item, priceful, property_name='price'):
 options = PriceDisplayOptions.from_context({'request': request})
 if options.hide_prices:
  return ''
 new_priceful = convert_taxness(request, item, priceful, options.include_taxes)
 price_value = getattr(new_priceful, property_name)
 return money(price_value)

def render_price_property ( request , item , priceful , property_name = 'price' ) : options = PriceDisplayOptions . from_context ( { 'request' : request } ) if options . hide_prices : return '' new_priceful = convert_taxness ( request , item , priceful , options . include_taxes ) price_value = getattr ( new_priceful , property_name ) return money ( price_value )
render price property of a priceful object .