summaryrefslogtreecommitdiff
path: root/django/contrib
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-09-08 13:25:11 +0000
committerJannis Leidel <jannis@leidel.info>2011-09-08 13:25:11 +0000
commit944ef3bb60eae989aa7d536e509f9cc80be0adcb (patch)
treeee505c718495a198be51ac90448b1151f0773288 /django/contrib
parentcf70c96ce08bec8834ada695451cc915f7558dbd (diff)
Fixed #16404 -- Fixed a regression in the localization changes in the humanize app made in r16168. Thanks, grepsd@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/humanize/templatetags/humanize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/humanize/templatetags/humanize.py b/django/contrib/humanize/templatetags/humanize.py
index 7a4defd392..8e25554aea 100644
--- a/django/contrib/humanize/templatetags/humanize.py
+++ b/django/contrib/humanize/templatetags/humanize.py
@@ -41,7 +41,7 @@ def intcomma(value, use_l10n=True):
except (TypeError, ValueError):
return intcomma(value, False)
else:
- return number_format(value)
+ return number_format(value, force_grouping=True)
orig = force_unicode(value)
new = re.sub("^(-?\d+)(\d{3})", '\g<1>,\g<2>', orig)
if orig == new: