Opened 13 years ago

Closed 13 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: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
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 13 years ago.

Download all attachments as: .zip

Change History (2)

by Florian Apolloner, 13 years ago

Attachment: floatformat.diff added

comment:1 by Aymeric Augustin, 13 years ago

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