Aymeric Augustin
|
9b1cb755a2
Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.
|
13 年之前 |
Aymeric Augustin
|
0a1a9b71fa
Made the defaultfilters tests run on the actual filters, not on functions imported from django.utils.
|
13 年之前 |
Alex Gaynor
|
d362c1546f
Convert much of the regression tests to use absolute imports. There's still work to be done though.
|
13 年之前 |
Jannis Leidel
|
343b4f1ea5
Fixed #14288 -- Fixed linebreaksbr template filter to normalize newlines first. Thanks, Julien Phalip.
|
13 年之前 |
Jannis Leidel
|
b0d274dbd5
Added missing future imports missed in r16167.
|
14 年之前 |
Jannis Leidel
|
7dd72360a2
Make use of new translation and settings context manager in the tests.
|
14 年之前 |
Ramiro Morales
|
3ecf628b36
Fixed #11206 -- Ensure that the floatformat template filter doesn't switch to scientific notation when asked to format a zero value with more than six decimal places. Thanks Tai Lee for the report and fix and Facundo Batista for his help when Decimal module expertise was needed.
|
14 年之前 |
Russell Keith-Magee
|
3a6491cf56
Fixed #14240 -- Enabled localization for the filesize filter. Thanks to David Danier for the report and patch.
|
14 年之前 |
Russell Keith-Magee
|
d577648732
Migrated defaultfilters doctests. Thanks to Stephan Jaekel.
|
14 年之前 |
Luke Plant
|
3f9054dd77
Fixed #12965 - unordered_list template filter fails when given a non-iterable second item in a two item list
|
14 年之前 |
Russell Keith-Magee
|
047d161164
Fixed #14002 -- Updated filesize filter to support terabyte and petabyte file sizes. Thanks to Aaron T. Myers for the patch.
|
14 年之前 |
Russell Keith-Magee
|
5211f48ae3
Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch.
|
15 年之前 |
Russell Keith-Magee
|
beca4b8109
Fixed #13114 -- Modified escapejs to produce output that is JSON compliant. Thanks to David Danier for the report.
|
15 年之前 |
Russell Keith-Magee
|
e6740cb39c
Fixed #11944 -- Improved exception handling for the filesizeformat filter. Thanks to rfk for the report and patch.
|
15 年之前 |
Malcolm Tredinnick
|
8931d8d688
Fixed #10675 -- Added unicode paragraph and line-sep handling to escapejs.
|
16 年之前 |
Jacob Kaplan-Moss
|
a68c4a85ce
Fixed #10513: floatformat now works with floatish things, not just real floats. Thanks, Alex.
|
16 年之前 |
Karen Tracey
|
b81bc22ad2
Fixed #5748 -- Made floatformat filter round properly on all platforms and handle NaN input correctly on Windows. Also added tests for these cases. Thanks for the report and initial patch to SmileyChris and PJCrosier.
|
16 年之前 |
Malcolm Tredinnick
|
384c48e456
Cleaned up some tests I broke as a result of the escapejs changes in [8577].
|
16 年之前 |
Russell Keith-Magee
|
06d49768bd
Fixed #7743: Reverted [8483], which was itself a reversion of [8481], after confirmation from Malcolm. Corrected a long standing mistake in the timesince/timeuntil filters when using a parameter for 'now'. Thanks to Andrew Shearer <ashearerw@shearersoftware.com> for the report.
|
16 年之前 |
Russell Keith-Magee
|
67402a6fb5
Reverted [8481] and [8482] while we work out what is going on with #8453 and the related discussions that I wasn't previously aware of.
|
16 年之前 |
Russell Keith-Magee
|
46da8ac9e5
Fixed #7443: Corrected a long standing mistake in the timesince/timeuntil filters when using a parameter for 'now'. Thanks to Andrew Shearer <ashearerw@shearersoftware.com> for the report.
|
16 年之前 |
Russell Keith-Magee
|
32b8c3e1c0
Fixed #7718 -- Added a naive implementation of sorted() for Python 2.3 compatibility, and modified test cases to import the function when required.
|
16 年之前 |
Adrian Holovaty
|
b7fea94096
Fixed #7542 -- Fixed bug in urlize where it was appending 'http://' to the link text. Thanks for the patch and tests, devin
|
17 年之前 |
Russell Keith-Magee
|
5da67a084a
Fixed #7355 -- Modified urlize utility to handle https:// addresses. Thanks for the report and patch, clint.
|
17 年之前 |
Russell Keith-Magee
|
ed1c21171c
Fixed #7366 -- Modified a few expected test outputs to remove the dependency on dictionary ordering. Thanks for the patch, Leo Soto.
|
17 年之前 |
Jacob Kaplan-Moss
|
b65fce6595
Fixed #4131: added an "escapejs" filter for use in JavaScript strings, and updated the documentation on addslashes to point to the new ticket. Featuring contributions from Ned Batchelder, Jeremy Dunck, and Andy Durdin.
|
17 年之前 |
Malcolm Tredinnick
|
5d1d054e15
Fixed #6030 -- More robust error handling for the "float" filter. Thanks,
|
17 年之前 |
Malcolm Tredinnick
|
356662cf74
Implemented auto-escaping of variable output in templates. Fully controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359
|
17 年之前 |
Gary Wilson Jr
|
a5eb61cd9f
Added tests for `floatformat` template filter for number with non-zero decimal place digit and ending in zeros.
|
17 年之前 |
Gary Wilson Jr
|
1a1a58c9f8
Fixed #3184 -- Changed the `unordered_list` template filter to use a more simple format, while maintaining backwards compatibility with the old format. `unordered_list` now works with a simple list of items. Thanks for the patch, SmileyChris.
|
17 年之前 |