Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/template/defaultfilters.py
Commit message (Collapse)AuthorAgeFilesLines
* Renamed filesizeformat tag's bytes variable to avoid ↵Sambhav Satija2015-10-271-16/+16
| | | | clash with builtin.
* Fixed #25441 -- Added support for negative filesize to ↵Sambhav Satija2015-10-271-0/+6
| | | | | | filesizeformat template filter. Thanks Andrey Yakovlev for the initial patch.
* Refs #23269 -- Removed the removetags template tag and ↵Tim Graham2015-09-241-8/+1
| | | | related functions per deprecation timeline.
* Refs #23261 -- Removed old style list syntax for ↵Tim Graham2015-09-241-39/+0
| | | | | | unordered_list filter Per deprecation timeline.
* Fixed #25031 -- Fixed a regression in the unordered_list ↵Noam2015-06-271-15/+20
| | | | template filter.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-3/+3
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-211-1/+2
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Moved engine-related exceptions to ↵Preston Timmons2015-05-071-1/+2
| | | | | | | | django.template.exceptions. With the introduction of multiple template engines these exceptions are no longer DTL-specific. It makes more sense for them to be moved out of DTL-related modules.
* Fixed typo in escape_filter() docstring.Jon Walsh2015-03-191-1/+1
|
* Fixed #24464 -- Made built-in HTML template filter ↵Erik Romijn2015-03-091-7/+7
| | | | | | | | | | functions escape their input by default. This may cause some backwards compatibility issues, but may also resolve security issues in third party projects that fail to heed warnings in our documentation. Thanks Markus Holtermann for help with tests and docs.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-12/+13
|
* Fixed #23558 -- documented slugify limitationsDavid Hoffman2014-10-301-3/+3
|
* Added exception name in debug error messageClaude Paroz2014-08-261-1/+1
| | | | This can help when some exception has no error message.
* Fixed #23260: Added generator support to ↵Jaap Roes2014-08-141-25/+28
| | | | defaultfilters.unordered_list.
* Fixed #23261 -- Deprecated old style list support for ↵Jaap Roes2014-08-111-0/+7
| | | | unordered_list filter.
* Fixed #22798 -- `pluralize()` now adds plural_suffix for ↵Moayad Mardini2014-06-101-1/+1
| | | | | | any `1 < d < 2` Thanks Odd_Bloke for the report.
* Fixed #18400 -- Modified length template filter to ↵Susan Tan2014-06-051-1/+1
| | | | | | | return 0 for unknown variables. Thanks Florian for the bug report, luyikei for the initial code patch, and Bouke for the code review feedback.
* Corrected many style guide violations that the newest ↵Alex Gaynor2014-03-301-1/+1
| | | | version of flake8 catches
* Fixed #22294 -- Prevented converting length filter ↵Claude Paroz2014-03-221-1/+1
| | | | | | output to string Thanks Steve Pike for the report.
* Removed fix_ampersands template filter per deprecation ↵Tim Graham2014-03-211-7/+1
| | | | | | | | timeline. Also removed related utility functions: * django.utils.html.fix_ampersands * django.utils.html.clean_html
* Fixed #19496 -- Added truncatechars_html filter.Jeremy2014-02-131-0/+17
| | | | | Thanks esevece for the suggestion and Nick Sandford and Martin Warne for the inital work on the patch.
* Moved imports to the top of the defaultfilters module.Aymeric Augustin2013-12-101-7/+6
|
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-1/+1
|
* Fixed all E226 violationsAlex Gaynor2013-11-031-2/+2
|
* Fixed the remaining E302 violations int eh django packageAlex Gaynor2013-11-031-0/+56
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+1
|
* Correct flake8 violation E261Ray Ashman Jr2013-11-021-13/+13
|
* Start attacking E231 violationsAlex Gaynor2013-10-241-1/+1
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+2
|
* Fixed E221 pep8 warnings.Tim Graham2013-10-221-2/+2
|
* Fixed E227 pep8 warningsTim Graham2013-10-211-5/+5
|
* Removed several unused imports.Aymeric Augustin2013-06-191-1/+0
|
* Fixed #20246 -- Added non-breaking spaces between values ↵Emil Stenström2013-05-181-12/+16
| | | | an units
* Updated some 'Dive Into Python' linksClaude Paroz2013-04-011-1/+1
|
* Removed support is_safe and needs_autoescape as function ↵Aymeric Augustin2012-12-291-9/+0
| | | | attributes.
* Fixed #19370 -- Made date filter properly handle ↵Danilo Bargen2012-11-271-1/+1
| | | | midnight value
* Ensure we ignore __pycache__ PEP 3174 dirs in a few more ↵Ramiro Morales2012-10-061-1/+1
| | | | places.
* Fixed bug in 212b982 -- Removed duplicate code in removetagsMarc Tamlyn2012-08-181-7/+2
|
* Fixed #14516 -- Extract methods from removetags and ↵Marc Tamlyn2012-08-181-5/+5
| | | | | | | | | | slugify template filters Patch by @jphalip updated to apply, documentation and release notes added. I've documented strip_tags as well as remove_tags as the difference between the two wouldn't be immediately obvious.
* [py3] Fixed slugify filterClaude Paroz2012-08-151-2/+2
|
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-9/+9
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-4/+5
|
* Fixed #18645 -- Clarified filesizeformat implementationAymeric Augustin2012-07-181-10/+16
| | | | Thanks Jérôme Renard for the patch.
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-071-40/+41
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin2012-05-031-1/+1
| | | | Thanks Ramiro for the patch.
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-1/+1
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #15683 -- Prevented escaped string to be ↵Claude Paroz2012-04-071-1/+1
| | | | | | needlessly marked safe twice in force_escape filter. Thanks tyrion for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Made dictsort and dictsort reversed template filters ↵Ramiro Morales2012-01-151-3/+9
| | | | | | | | | | | | fail silently when passed list of things that aren't dictionaries. Thanks Harris Lapiroff for the report and Daniel Barreto for the patch. Fixes #15652. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17496 -- Regression in the floatformat template ↵Aymeric Augustin2012-01-031-1/+1
| | | | | | filter, introduced by the fix for #15789. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15789 -- Set the decimal precisio to avoid an ↵Aymeric Augustin2011-12-301-2/+8
| | | | | | exception in the floatformat filter, and added a few more tests. Thanks akaihola for the report, igalarzab for the patch and ptone for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17297 bcc190cf-cafb-0310-a4f2-bffc1f526a37