summaryrefslogtreecommitdiff
path: root/django/template
AgeCommit message (Collapse)Author
2018-07-31[2.1.x] Fixed #29617 -- Fixed Template crash if template_string is lazy.Dražen Odobašić
Regression in 3a148f958dddd97c1379081118c30fbede6b6bc4. Backport of 9f3b9ffd51c71d96728df9ee16f5a57c6f3b315d from master
2018-05-25[2.1.x] Fixed #29400 -- Fixed crash in custom template filters that use ↵Ryan Rubin
decorated functions. Regression in 620e9dd31a2146d70de740f96a8cb9a6db054fc7. Backport of a8d12bc28069d56e0306770ab9c73738293663f7 from master
2018-05-10Replaced TOKEN_* constants by TokenType enums.Claude Paroz
Thanks Tim Graham for the review.
2018-05-03Used double quotation marks for csrf form element.CHI Cheng
2018-04-19Ref #23919 -- Replaced some os.path usage with pathlib.Path.Tom
2018-04-04Fixed #29288 -- Made {% widthratio %} assign to as var if an exception occurs.Jirka Vejrazka
2018-03-24Removed unnecessary variable in Lexer.create_token().Mads Jensen
2018-02-26Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak
2018-02-23Fixed #29154 -- Corrected examples in pluralize docstring and added tests.Hasan Ramezani
2018-02-10Refs #27795 -- Removed force_bytes() usage in django/template/loaders/cached.py.Jon Dufresne
2018-02-07Fixed #17419 -- Added json_tag template filter.Jonas Haag
2018-01-25Fixed #29060 -- Made {% firstof %} assign '' to the asvar if all inputs are ↵Roger Gammans
false.
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов
2017-12-19Simplified and improved performance of floatformat filter.Mariusz Felisiak
Thanks Sergey Fedoseev for the review.
2017-12-07Fixed #28906 -- Removed unnecessary bool() calls.Tim Graham
2017-12-07Fixed #28907 -- Removed unnecessary if statements.Tim Graham
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-11-14Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().Дилян Палаузов
2017-11-11Removed unneeded iter() call in IfNode.nodelist.Sergey Fedoseev
2017-10-21Fixed #28730 -- Fixed loss of precision for large integer literals in templatesClaude Paroz
Thanks Fraser Nevett for the report and Tim Graham for patch edits.
2017-10-20Fixed #28662 -- Silenced join template filter error if arg isn't iterable.Mads Jensen
2017-10-18Fixed #28711 -- Fixed unordered_list template filter with lazy translations.Jonas Haag
2017-10-12Simplified IfNode.nodelistTim Graham
2017-10-12Removed unused ForNode.__iter__().Tim Graham
Unknown if it was ever used.
2017-10-05Refs #27546 -- Replaced hardcoded class name in ForNode.__repr__().Mads Jensen
2017-10-04Passed ignore_failures as a kwarg for readability in template tags.Tim Graham
Also removed unused VariableDoesNotExist catching where failures are ignored.
2017-10-02Refs #23919 -- Removed unneeded float()/int() calls.Mariusz Felisiak
2017-09-30Removed always True if check in stringfilter decorator.Mads Jensen
2017-09-28Simplified various __eq__() methods.Mads Jensen
2017-09-25Merged startswith() calls.Mariusz Felisiak
2017-09-22Refs #27175 -- Removed exception silencing from the {% include %} template tag.Tim Graham
Per deprecation timeline.
2017-09-20Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-08-23Removed unneeded iter() calls.Sergey Fedoseev
A few of these were unnecessarily added in 2b281cc35ed9d997614ca3c416928d7fabfef1ad.
2017-08-22Refs #28502 -- Complemented stringformat tuple handling/test.Claude Paroz
An additional test and a code change were suggested in a late review.
2017-08-21Fixed #28502 -- Made stringformat template filter accept tuplesSrinivas Reddy Thatiparthy
2017-08-07Removed unnecessary else clause in TemplateStrings.get_template().Srinivas Reddy Thatiparthy
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-06-13Fixed #28071 -- Fixed {% extends %} origin history.John D'Ambrosio
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27Replaced some map() and filter() calls with generators.Tom
2017-05-11Fixed #28129 -- Allowed custom template tags to use keyword-only arguments.Alexander Allakhverdiyev
2017-04-27Replaced django.utils.inspect.getargspec() with inspect.getfullargspec().Alexander Allakhverdiyev
2017-04-26Replaced temporary lists used for passing arguments with iterables.Jon Dufresne
2017-04-06Fixed #28001 -- Updated comment and tested context popping in ForNode.render().kapil garg
2017-04-03Fixed #27974 -- Kept resolved templates constant during one rendering cycle.kapil garg
Thanks Florian Apolloner for the initial patch.
2017-03-31Fixed #27359 -- Made Engine.get_default() return the first DjangoTemplates ↵Carlton Gibson
engine if multiple are defined.
2017-03-25Fixed #27956 -- Fixed display of errors in an {% extends %} child.Tim Graham
Thanks Ling-Xiao Yang for the report and test, and Preston Timmons for the fix.
2017-02-23Refs #23919 -- Used yield from.Vytis Banaitis