Florian Apolloner
|
7f65974f82
|
Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when truncating HTML.
Thanks to Guido Vranken for initial report.
|
2019-08-01 09:24:54 +02:00 |
Andrew Godwin
|
a415ce70be
|
Fixed #30451 -- Added ASGI handler and coroutine-safety.
This adds an ASGI handler, asgi.py file for the default project layout,
a few async utilities and adds async-safety to many parts of Django.
|
2019-06-20 12:29:43 +02:00 |
Jon Dufresne
|
53ea535f13
|
Refs #27486 -- Added tests for filesizeformat filter.
|
2019-06-11 20:18:36 +02:00 |
Jon Dufresne
|
e065b29387
|
Refs #27804 -- Used subTest() in filesizeformat tests and HumanizeTests.
|
2019-06-10 08:46:11 +02:00 |
Batuhan Taşkaya
|
5c19274643
|
Fixed #30453 -- Fixed crash of simple_tag() and inclusion_tag() when function is wrapped.
getfullargspec() doesn't work with wrapped functions.
|
2019-05-17 09:53:24 +02:00 |
Tobias Kunze
|
e683613649
|
Fixed #20122 -- Made pluralize template filter return '' on invalid input.
|
2019-05-03 11:35:20 +02:00 |
Jon Dufresne
|
8d76443aba
|
Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use html.escape()/unescape().
|
2019-04-25 15:09:07 +02:00 |
Nathan Gaberel
|
624573726a
|
Fixed #29791 -- Made Engine.render_to_string() honor autoescape.
|
2019-03-25 17:59:07 -04:00 |
Mariusz Felisiak
|
b435f82939
|
Reverted "Fixed relative paths imports per isort 4.3.5."
This reverts commit 463fe11bc8 due to
restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
|
2019-03-03 19:33:48 +01:00 |
Mariusz Felisiak
|
463fe11bc8
|
Fixed relative paths imports per isort 4.3.5.
|
2019-02-25 11:03:30 +01:00 |
Tim Graham
|
0ac4e51b2c
|
Fixed typos in tests/template_tests/test_context.py.
|
2019-02-21 09:43:00 -05:00 |
Sergey Fedoseev
|
1933e56eca
|
Removed uneeded generator expressions and list comprehensions.
|
2019-02-09 09:18:48 -05:00 |
Sergey Fedoseev
|
b1a2ad6925
|
Removed uneeded iter() calls with generator expression as argument.
|
2019-02-09 09:18:22 -05:00 |
Tim Graham
|
9a0cc54524
|
Refs #30137 -- Fixed template test on Windows.
Broken in 7785e03ba8 .
|
2019-01-29 10:05:10 -05:00 |
Jon Dufresne
|
7785e03ba8
|
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
|
2019-01-28 11:15:06 -05:00 |
Tim Graham
|
043bd70942
|
Updated test URL patterns to use path() and re_path().
|
2018-12-31 10:47:32 -05:00 |
Simon Charette
|
0f212db29d
|
Made reused RequestFactory instances class attributes.
|
2018-11-27 09:49:02 -05:00 |
Simon Charette
|
b8763fc0a4
|
Used SimpleTestCase for template library tests.
|
2018-11-26 10:23:35 -05:00 |
Tim Graham
|
70a80ff1be
|
Added a urlize test for wrapping characters.
|
2018-10-12 08:13:52 +02:00 |
Sergey Fedoseev
|
8ef8bc0f64
|
Refs #28909 -- Simplifed code using unpacking generalizations.
|
2018-09-28 09:57:12 -04:00 |
Jon Dufresne
|
bb81c22d90
|
Refs #27795 -- Removed force_bytes() usage in utils/_os.py.
|
2018-09-25 11:27:36 -04:00 |
Claude Paroz
|
201017df30
|
Fixed #29654 -- Made text truncation an ellipsis character instead of three dots.
Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
|
2018-08-21 17:46:45 +02:00 |
luz.paz
|
97e637a87f
|
Fixed typos in comments and docs.
|
2018-08-01 16:09:22 -04:00 |
Dražen Odobašić
|
9f3b9ffd51
|
Fixed #29617 -- Fixed Template crash if template_string is lazy.
Regression in 3a148f958d .
|
2018-07-31 09:57:11 -04:00 |
Hasan Ramezani
|
cebbcaa1ba
|
Moved yesno filter test to its file.
|
2018-07-27 17:15:00 -04:00 |
ryabtsev
|
b4fd9b5ad4
|
Fixed #29432 -- Allowed passing an integer to the slice template filter.
|
2018-05-26 20:56:51 -04:00 |
Ryan Rubin
|
a8d12bc280
|
Fixed #29400 -- Fixed crash in custom template filters that use decorated functions.
Regression in 620e9dd31a .
|
2018-05-25 11:11:46 -04:00 |
Claude Paroz
|
9c4ea63e87
|
Replaced TOKEN_* constants by TokenType enums.
Thanks Tim Graham for the review.
|
2018-05-10 17:51:51 +02:00 |
Claude Paroz
|
523e04dfeb
|
Captured logging in tests with self.assertLogs().
|
2018-05-07 09:34:02 -04:00 |
Tim Graham
|
a917a5601f
|
Refs #23890 -- Removed numpy deprecation warning silencing.
Obsolete since numpy 1.12.0.
|
2018-04-18 22:09:26 -04:00 |
Jirka Vejrazka
|
6148dda72f
|
Fixed #29288 -- Made {% widthratio %} assign to as var if an exception occurs.
|
2018-04-04 14:03:16 -04:00 |
Hasan Ramezani
|
76ae1e9a94
|
Increased test coverage for {% get_admin_log %} and {% static %}.
|
2018-03-26 13:34:23 -04:00 |
Mads Jensen
|
4554f9a783
|
Increased test coverage for various template tags.
|
2018-03-24 19:56:46 -04:00 |
Mads Jensen
|
bb79e480e1
|
Increased test coverage for i18n template tags.
|
2018-03-21 08:38:07 -04:00 |
Mariusz Felisiak
|
362813d628
|
Fixed hanging indentation in various code.
|
2018-03-16 10:54:34 +01:00 |
Hasan Ramezani
|
5033999153
|
Fixed #29154 -- Corrected examples in pluralize docstring and added tests.
|
2018-02-23 14:20:00 -05:00 |
Jonas Haag
|
8c709d79cb
|
Fixed #17419 -- Added json_tag template filter.
|
2018-02-07 18:38:12 -05:00 |
Mariusz Felisiak
|
9bcf73d788
|
Fixed imports per isort 4.3.0.
|
2018-02-01 09:29:46 +01:00 |
Roger Gammans
|
d0b44c44ef
|
Fixed #29060 -- Made {% firstof %} assign '' to the asvar if all inputs are false.
|
2018-01-25 13:40:51 -05:00 |
Jon Dufresne
|
ff05de760c
|
Fixed #29038 -- Removed closing slash from HTML void tags.
|
2018-01-21 02:09:10 -05:00 |
Levi Payne
|
6c3104221b
|
Refs #28721 -- Added test for variations of 'inf'/'infinity' as a template variable names.
Fixed by 9ec7d8e514 .
|
2017-10-21 20:55:26 -04:00 |
Claude Paroz
|
9ec7d8e514
|
Fixed #28730 -- Fixed loss of precision for large integer literals in templates
Thanks Fraser Nevett for the report and Tim Graham for patch edits.
|
2017-10-21 17:20:29 +02:00 |
Mads Jensen
|
f7036b3e26
|
Fixed #28662 -- Silenced join template filter error if arg isn't iterable.
|
2017-10-20 09:46:31 -04:00 |
Tim Graham
|
1399f8ae77
|
Refs #28711 -- Replaced ugettext_lazy() with gettext_lazy() in a test.
As per c651331b34 .
|
2017-10-18 20:07:36 -04:00 |
Jonas Haag
|
d997ab7764
|
Fixed #28711 -- Fixed unordered_list template filter with lazy translations.
|
2017-10-18 19:45:10 -04:00 |
Jonas Haag
|
b21b1b10af
|
Refs #23260 -- Tested nested generator input to unordered_list template filter.
|
2017-10-18 19:37:30 -04:00 |
Mads Jensen
|
86367a11d3
|
Added tests for invalid {% for %} usage and ForLoop.__repr__().
|
2017-10-05 11:33:14 -04:00 |
Mads Jensen
|
aba3467585
|
Added tests for invalid {% autoescape %} usage.
|
2017-10-02 11:02:58 -04:00 |
Mads Jensen
|
25307089bc
|
Completed test coverage for default template filters.
|
2017-09-30 18:34:51 -04:00 |
Tim Graham
|
e62165b898
|
Refs #27175 -- Removed exception silencing from the {% include %} template tag.
Per deprecation timeline.
|
2017-09-22 12:51:18 -04:00 |