summaryrefslogtreecommitdiff
path: root/django/template/defaultfilters.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/template/defaultfilters.py')
-rw-r--r--django/template/defaultfilters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index e6a0c619dc..c5839197df 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -934,7 +934,7 @@ def pluralize(value, arg='s'):
singular_suffix, plural_suffix = bits[:2]
try:
- if int(value) != 1:
+ if float(value) != 1:
return plural_suffix
except ValueError: # Invalid string that's not a number.
pass