def show_display_mode(self, instance): display_mode = get_price_display_mode(self.request, instance) for k, v in PriceDisplayChoices.choices(): if k == display_mode: return force_text(v).title() return _("Unspecified")
def show_display_mode(self, instance): display_mode = get_price_display_mode(self.request, instance) for k, v in PriceDisplayChoices.choices(): if k == display_mode: return force_text(v).title() return _("Unspecified")