diff options
| author | Vlastimil Zíma <ziima@users.noreply.github.com> | 2022-10-24 12:59:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-24 12:59:34 +0200 |
| commit | 08c5a787262c1ae57f6517d4574b54a5fcaad124 (patch) | |
| tree | 32d549f830ff111954373312d4bdef8835b8e677 /django/template | |
| parent | 1d6948096f6fe7aa887d651e01e9af8e4ef349a2 (diff) | |
Fixed #34098 -- Fixed loss of precision for Decimal values in floatformat filter.
Regression in 12f7928f5a455e330c0a7f19bc86b37baca12811.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/defaultfilters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 7a5b28d159..23c3a08c67 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -151,7 +151,7 @@ def floatformat(text, arg=-1): use_l10n = False arg = arg[:-1] or -1 try: - input_val = repr(text) + input_val = str(text) d = Decimal(input_val) except InvalidOperation: try: |
