Code

Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#19241 closed Uncategorized (fixed)

Demonstrate how to round to integers using floatformat template tag

Reported by: pydanny Owned by: pydanny
Component: Documentation Version: 1.5-alpha-1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

People write this as a custom templatetag all the time. There should be an example in the documentation that addresses it.

Attachments (0)

Change History (3)

comment:1 Changed 21 months ago by pydanny

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

The work is available on branch ticket_19241.

This has a pull request at https://github.com/django/django/pull/496.

comment:2 Changed 21 months ago by Preston Holmes <preston@…>

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

In dbe984c397d6c1e49167dd8fbfb655dd17a14572:

Fixed #19241 -- Improved floatformat docs

Demonstrate how to round to integers using floatformat templatetag

comment:3 Changed 21 months ago by Preston Holmes <preston@…>

In a70492e6b532905c921678f35b5c60b22387f1c6:

Fixed #19241 -- Improved floatformat docs

Demonstrate how to round to integers using floatformat templatetag

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.