#1684 closed enhancement (fixed)
[patch] Built-in "numerize" filter
Reported by: | James Bennett | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Template system | Version: | |
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
It'd be handy to have a template filter which follows AP style guidelines for numbers -- if the number is 1-9, spell it out, otherwise print the number as digits.
Attachments (3)
Change History (6)
by , 19 years ago
Attachment: | defaultfilters.diff added |
---|
comment:1 by , 19 years ago
Summary: | Built-in "numerize" filter → [patch] Built-in "numerize" filter |
---|
comment:2 by , 19 years ago
Rather than putting this in the default filters, we could add django.contrib.apstyle
and fill it with other AP-isms like dateline-related stuff.
by , 19 years ago
Attachment: | defaultfilters.2.diff added |
---|
No code change, but this one follows convention of referring to the arg as 'value'
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch against magic-removal to add 'numerize' filter