I would like to set my own currency (preferably behind it first)
def total_price(self):
items = SellItem.objects.filter(selllist=self)
total = 0
for item in items:
total += item.amount * item.price
locale.setlocale(locale.LC_ALL, '')
total = locale.currency(total, grouping=True)
return total
Now I would like to use grouping, but instead of $ up front, I would like to have ISK behind. Not quite sure how to do this.
source
share