def get_rate_choices(self, rates): choices = [] for r in rates: description = EASYPOST_SERVICES.get(r['service'], None) if description: choices.append([r['id'], "%s %s" % (kishore_currency(r['rate']), description)]) return choices
def formatted_price(self): return kishore_currency(self.price)