summaryrefslogtreecommitdiff
path: root/django/template
AgeCommit message (Collapse)Author
2013-02-14Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.Julien Phalip
2013-02-14Fixed #19819 - Improved template filter errors handling.Michael van Tellingen
Wrap the Parser.compile_filter method call with a try/except and call the newly added Parser.compile_filter_error(). Overwrite this method in the DebugParser to throw the correct error. Since this error was otherwise catched by the compile_function try/except block the debugger highlighted the wrong line.
2013-02-04Fixed #19729 -- Removed leftover refactoring helper variables.Ramiro Morales
Thanks chrismedrela for the report. Refs #6262, 44b9076 and 4d94c0c.
2013-02-04Fixed #17061 -- Factored out importing object from a dotted pathClaude Paroz
Thanks Carl Meyer for the report.
2012-12-29Merge pull request #595 from bmispelon/patch-1Aymeric Augustin
Fixed a typo in WidthRatioNode.
2012-12-29Removed support is_safe and needs_autoescape as function attributes.Aymeric Augustin
2012-12-18Fixed #19470 - Clarified widthratio example.Tim Graham
Thanks orblivion for the suggestion.
2012-12-17Fixed typo in WidthRatioNode's error.Baptiste Mispelon
2012-12-09Fixed #19392 -- Improved error for old-style url tags with dashes.Aymeric Augustin
Thanks dloewenherz for the report.
2012-11-27Fixed #19370 -- Made date filter properly handle midnight valueDanilo Bargen
2012-11-25Change exception type to reduce confusion.Aymeric Augustin
TemplateSyntaxError is expected at compile time, not at run time. Refs #19280.
2012-11-24Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax.Aymeric Augustin
2012-11-19Fix typo in commentRiley Strong
2012-11-09Fixed #19262 -- Support cookie pickling in SimpleTemplateResponseSean Breant
Refs #15863.
2012-10-13Fixed #18484 -- Removed the div around the csrf token inputClaude Paroz
2012-10-06Ensure we ignore __pycache__ PEP 3174 dirs in a few more places.Ramiro Morales
2012-09-09Fixes #18933. Fixes code example in docstring.Martey Dodoo
Makes code example of silent keyword docstring in cycle templatetag method the same as in the documentation.
2012-08-30Replaced some smart_xxx by force_xxx equivalentClaude Paroz
smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call.
2012-08-22Used the decorator syntax for properties in django.httpClaude Paroz
2012-08-18Fixed bug in 212b982 -- Removed duplicate code in removetagsMarc Tamlyn
2012-08-18Fixed #14516 -- Extract methods from removetags and slugify template filtersMarc Tamlyn
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.
2012-08-15[py3] Fixed slugify filterClaude Paroz
2012-08-14[py3] Fixed egg template loader.Aymeric Augustin
2012-08-12[py3] Made __repr__ return str with Python 3Claude Paroz
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-12[py3] Removed redundant __str__ methods.Aymeric Augustin
These classes already have an identical __unicode__ method, which will be used after an upcoming refactoring.
2012-08-11Fixed #18739 -- witdthratio behavior on None argsKaren Tracey
Made behavior given None consistent with how non-numerics were handled. Thanks to ja.geb@me.com for the report.
2012-08-08remove a bunch of unnescesarry iterkeys() callsAlex Gaynor
2012-08-08[py3] Fixed filesystem encoding handlingAymeric Augustin
in the app directories template loader.
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* 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.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-18Fixed #18645 -- Clarified filesizeformat implementationAymeric Augustin
Thanks Jérôme Renard for the patch.
2012-07-06Fixed #18484 - 'display:none' on CSRF token div is redundant and causes ↵Luke Plant
problems with some browsers Thanks to hedleyroos for the report
2012-07-06Fixed #18572 - Python26 string format incompatibilityLuke Plant
Thanks to anonymous/AeroNotix for the report
2012-07-03Changed a lot of internal code to use 'format_html' where appropriate/possibleLuke Plant
2012-06-30Fixed #16519 -- Deprecated mimetype kwarg of HttpResponse __init__Claude Paroz
This keyword was already deprecated in the code (supported for backwards compatibility only), but never formally deprecated. Thanks Paul McMillan for the report and yasar11732 for the initial patch.
2012-06-19Fixed #14502 again -- saner verbatim closing tokenChris Beaven
Previously, the closing token for the verbatim tag was specified as the first argument of the opening token. As pointed out by Jannis, this is a rather major departure from the core tag standard. The new method reflects how you can give a specific closing name to {% block %} tags.
2012-06-14IfParser.next() method renamed to avoid confusion with iterator protocol.Luke Plant
2012-06-14Reverted part of 169b1a40 which was mistakenly applied to a non-iterator class.Luke Plant
Doing next(IfParser()) works for Python 2.7, because it calls IfParser.next(), but in Python 3 will call IfParser.__next__() which does not work since it is not an iterator and does not have that method.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-07Fixed #14502 -- Added a verbatim template tag.Aymeric Augustin
Thanks SmileyChris for the patch.
2012-05-25Specified when open should use binary mode.Claude Paroz
Thanks Vinaj Sajip for the help of his django3 branch.
2012-05-10Replaced foo.next() by next(foo).Claude Paroz
This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
2012-05-05Made more extensive usage of context managers with open.Claude Paroz
2012-05-03Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin
Thanks Ramiro for the patch.
2012-04-30Fixed #4746 -- Allowed spaces around filter separator.Aymeric Augustin
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Fixed #17992 -- Added a public API for localtime.Aymeric Augustin
Thanks Bradley Ayers for the report.