summaryrefslogtreecommitdiff
path: root/django/template
AgeCommit message (Collapse)Author
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-09-25Refs #29784 -- Normalized Python docs links to omit the version.Jon Dufresne
2018-08-21Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵Claude Paroz
dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
2018-08-01Fixed typos in comments and docs.luz.paz
2018-07-31Fixed #29617 -- Fixed Template crash if template_string is lazy.Dražen Odobašić
Regression in 3a148f958dddd97c1379081118c30fbede6b6bc4.
2018-07-11Simplified BaseContext.__iter__().Sergey Fedoseev
2018-07-09Removed unneded str() calls prior to mark_safe(); simplified mark_safe().Sergey Fedoseev
2018-05-26Fixed #29432 -- Allowed passing an integer to the slice template filter.ryabtsev
2018-05-25Fixed #29400 -- Fixed crash in custom template filters that use decorated ↵Ryan Rubin
functions. Regression in 620e9dd31a2146d70de740f96a8cb9a6db054fc7.
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()).