Opened 5 years ago

Closed 5 years ago

#17496 closed Bug (fixed)

Floatformat no longer allows strings as precision since r17297

Reported by: Florian Apolloner Owned by: nobody
Component: Template system Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: no UI/UX: no

Description

Title says it all, according to https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std:templatefilter-floatformat strings as precision are supposed to get converted to an int.

Attached patch contains fix and tests…

Attachments (1)

floatformat.diff (1.3 KB) - added by Florian Apolloner 5 years ago.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by Florian Apolloner

Attachment: floatformat.diff added

comment:1 Changed 5 years ago by Aymeric Augustin

Resolution: fixed
Status: newclosed

In [17335]:

(The changeset message doesn't reference this ticket)

Note: See TracTickets for help on using tickets.
Back to Top