Skip to content

Commit

Permalink
Fix: awesto#724: broken amount rendering when USE_TOUSAND_SEPARATOR i…
Browse files Browse the repository at this point in the history
…s True
  • Loading branch information
jrief committed Apr 23, 2018
1 parent ea92056 commit 0c56ff9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shop/admin/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from django.template import RequestContext
from django.template.loader import select_template
from django.utils.html import format_html
from django.utils.formats import number_format
from django.utils.translation import pgettext_lazy

from fsm_admin.mixins import FSMTransitionMixin
Expand Down Expand Up @@ -112,15 +111,15 @@ def get_number(self, obj):
get_number.short_description = pgettext_lazy('admin', "Order number")

def get_total(self, obj):
return number_format(obj.total)
return str(obj.total)
get_total.short_description = pgettext_lazy('admin', "Total")

def get_subtotal(self, obj):
return number_format(obj.subtotal)
return str(obj.subtotal)
get_subtotal.short_description = pgettext_lazy('admin', "Subtotal")

def get_outstanding_amount(self, obj):
return number_format(obj.outstanding_amount)
return str(obj.outstanding_amount)
get_outstanding_amount.short_description = pgettext_lazy('admin', "Outstanding amount")

def has_add_permission(self, request):
Expand Down

0 comments on commit 0c56ff9

Please sign in to comment.