Code

Opened 2 years ago

Closed 2 years ago

#17496 closed Bug (fixed)

Floatformat no longer allows strings as precision since r17297

Reported by: apollo13 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 apollo13 2 years ago.

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by apollo13

comment:1 Changed 2 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

In [17335]:

(The changeset message doesn't reference this ticket)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.