def stock_status_label(key, *args, **kwargs): """ Render a StockItem status label """ return mark_safe(StockStatus.render(key, large=kwargs.get('large', False)))
def stock_status(key, *args, **kwargs): return mark_safe(StockStatus.render(key))