Vytis Banaitis
d1bab24e01
Refs #23919 , #27778 -- Removed obsolete mentions of unicode.
2017-01-26 08:19:27 -05:00
chillaranand
d6eaf7c018
Refs #23919 -- Replaced super(ClassName, self) with super().
2017-01-25 12:23:46 -05:00
Tim Graham
632c4ffd9c
Refs #23919 -- Replaced errno checking with PEP 3151 exceptions.
2017-01-25 10:13:08 -05:00
Mads Jensen
ebf34c3cdc
Removed unused variables that are overwritten.
2017-01-25 09:14:05 -05:00
Claude Paroz
d2e7d15b4c
Assumed iri_to_uri always returns a string
...
Thanks Tim Graham for the review.
2017-01-23 19:59:33 +01:00
Claude Paroz
6e55e1d88a
Refs #23919 -- Replaced six.reraise by raise
2017-01-22 20:08:04 +01:00
Mariusz Felisiak
c22212220a
Refs #23919 -- Removed re.U and re.UNICODE (default on Python 3).
2017-01-21 14:28:16 -05:00
Tim Graham
990ce6386c
Refs #5748 -- Removed obsolete Python/Windows workarounds in floatformat filter.
2017-01-21 13:53:35 -05:00
Tim Graham
4e729feaa6
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
...
These functions do nothing on Python 3.
2017-01-20 08:01:02 -05:00
Claude Paroz
dc8834cad4
Refs #23919 -- Removed unneeded force_str calls
2017-01-20 08:44:31 +01:00
Simon Charette
cecc079168
Refs #23919 -- Stopped inheriting from object to define new style classes.
2017-01-19 08:39:46 +01:00
Aymeric Augustin
a556396339
Refs #23919 -- Replaced io.open() with open().
...
io.open() is an alias for open() on Python 3.
2017-01-18 21:45:12 -05:00
Aymeric Augustin
eb422e476f
Refs #23919 -- Removed obsolete __ne__() methods.
...
__ne__() defaults to the opposite of __eq__() on Python 3
when it doesn't return NotImplemented.
2017-01-18 21:44:00 -05:00
Aymeric Augustin
3cc5f01d9b
Refs #23919 -- Stopped using django.utils.lru_cache().
2017-01-18 21:42:40 -05:00
Claude Paroz
2b281cc35e
Refs #23919 -- Removed most of remaining six usage
...
Thanks Tim Graham for the review.
2017-01-18 21:33:28 +01:00
Claude Paroz
7b2f2e74ad
Refs #23919 -- Removed six.<various>_types usage
...
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18 20:18:46 +01:00
Claude Paroz
f3c43ad1fd
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
2017-01-18 13:44:34 +01:00
Claude Paroz
d7b9aaa366
Refs #23919 -- Removed encoding preambles and future imports
2017-01-18 09:55:19 +01:00
Tim Graham
60ca37d2e5
Refs #24046 -- Removed mark_for_escaping() per deprecation timeline.
2017-01-17 20:52:04 -05:00
Tim Graham
740f63a3df
Refs #26263 -- Removed deprecated Context.has_key().
2017-01-17 20:52:03 -05:00
Tim Graham
ff419de263
Refs #25466 -- Removed aliases for LoaderOrigin and StringOrigin.
...
Per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
8377abd59e
Refs #25120 -- Removed template.loaders.eggs.Loader per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
5d8da093a9
Refs #15053 -- Removed support for non-recursive template loading.
...
Per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
f032bbc8b1
Refs #18651 -- Removed assignment_tag per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Martin
e3f095b086
Fixed #26478 -- Made {% for %} reject invalid unpacking vars with quotes or vertical bars.
2016-12-30 09:22:40 -05:00
Shivang Bharadwaj
6a74950513
Fixed #27258 -- Prohibited django.Template.render() with non-dict context.
...
Thanks Shivang Bharadwaj for the initial patch.
2016-12-28 16:03:20 -05:00
Preston Timmons
b52c73008a
Fixed #15667 -- Added template-based widget rendering.
...
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-12-27 17:50:10 -05:00
Preston Timmons
0b4d517263
Fixed #27584 -- Fixed display of render time template errors.
2016-12-20 10:36:33 -05:00
Tim Graham
92c5eeac33
Fixed #27598 -- Allowed specifying directories for a filesystem template loader.
...
Thanks Carl Meyer for review.
2016-12-14 10:33:51 -05:00
Kosei Kitahara
f095b249ba
Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().
2016-11-24 05:56:39 -05:00
Tim Graham
2e5fbe889f
Cleaned up some __getstate__() docstrings.
2016-11-23 09:45:21 -05:00
Mariusz Felisiak
12f7928f5a
Fixed #27394 -- Added scientific notation support for big integers in floatformat filter.
2016-11-15 09:07:15 -05:00
Ramin Farajpour Cami
0a63ef3f61
Fixed #27463 -- Fixed E741 flake8 warnings.
2016-11-14 17:40:28 -05:00
Ramin Farajpour Cami
967be82443
Fixed E305 flake8 warnings.
2016-11-14 12:30:46 -05:00
Tim Graham
8119b679eb
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
...
http://bugs.python.org/issue27364
2016-09-17 15:44:06 -04:00
Jon Dufresne
331ca5391e
Fixed #27175 -- Deprecated silencing exceptions from the {% include %} template tag.
...
Thanks Tim Graham for the review.
2016-09-08 18:24:22 -07:00
Tim Graham
277fe2e8f2
Fixed #25788 -- Enabled the cached template loader if debug is False.
2016-09-03 09:06:33 -04:00
Claude Paroz
2ced2f785d
Replaced smart_* by force_* calls whenever possible
...
The smart_* version should only be used when a lazy string should keep
its lazy status.
2016-09-03 13:46:41 +02:00
Sergei Maertens
32c02f2a0e
Fixed #5908 -- Added {% resetcycle %} template tag.
...
Thanks to Simon Litchfield for the report, Uninen for the initial
patch, akaihola, jamesp, b.schube, and Florian Appoloner for
subsequent patches, tests, and documentation.
2016-09-01 15:52:21 -04:00
Tim Graham
59afe61a97
Fixed #27140 -- Prevented template rendering from hiding a property's TypeError.
2016-08-31 13:44:38 -04:00
Baptiste Mispelon
61b45dff6b
Fixed #27126 -- Made {% regroup %} return a namedtuple to ease unpacking.
2016-08-26 16:59:21 -04:00
Baptiste Mispelon
47f57d6776
Changed the example in the {% regroup %} docstring.
2016-08-26 16:24:56 -04:00
Tim Graham
937d752d3d
Fixed #27058 -- Reallowed the {% for %} tag to unpack any iterable.
...
Thanks Sergei Maertens for the report and patch.
2016-08-15 15:39:22 -04:00
Tim Graham
ba749f8f87
Refs #13408 -- Removed obsolete code/comments from {% for %} unpacking deprecation.
2016-08-13 08:45:41 -04:00
Sergei Maertens
0a5910684a
Renamed a camel case variable in the cycle template tag.
2016-08-09 09:42:27 -04:00
Alexander Schrijver
3ae3a1f9fa
Fixed #26830 -- Prevented the 'with' templatetag from resetting the cycle variable to its initial state.
2016-08-09 09:05:17 -04:00
Berker Peksag
52a991d976
Fixed #24694 -- Added support for context_processors to Jinja2 backend.
2016-06-28 14:30:54 -04:00
Samir Shah
fff5dbe59c
Corrected firstof template tag's docstring.
...
Since Django 1.8, firstof escapes its output.
2016-06-21 08:12:07 -04:00
inondle
93c312cc9c
Fixed #26573 -- Added descriptive error message for malformed if/else/elif template tags.
2016-05-27 18:12:56 -04:00
Tim Graham
2f0e0eee45
Fixed #24046 -- Deprecated the "escape" half of utils.safestring.
2016-05-10 12:46:47 -04:00