From 5e4e0b6fe97c6c9de8355f8738403691637a0b07 Mon Sep 17 00:00:00 2001 From: Maxime Turcotte Date: Thu, 27 Mar 2014 16:24:19 -0400 Subject: [PATCH] Fixed #22306 -- Deprecated future versions of cycle and firstof template tags. --- AUTHORS | 1 + django/contrib/admin/templates/admin/base.html | 2 +- .../admin/templates/admin/change_list_results.html | 2 +- .../admin/templates/admin/edit_inline/tabular.html | 2 +- .../templates/admin_doc/template_filter_index.html | 2 +- .../templates/admin_doc/template_tag_index.html | 2 +- django/templatetags/future.py | 14 +++++++++++--- django/views/debug.py | 2 +- docs/internals/deprecation.txt | 3 +++ docs/releases/1.8.txt | 9 ++++++++- tests/template_tests/tests.py | 6 ++++-- 11 files changed, 33 insertions(+), 12 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7be78035a1..0bba6ce894 100644 --- a/AUTHORS +++ b/AUTHORS @@ -633,6 +633,7 @@ answer newbie questions, and generally made Django that much better: tt@gurgle.no David Tulig Justine Tunney + Maxime Turcotte Amit Upadhyay Adam Vandenberg Geert Vanderkelen diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index d93128a140..d52554f633 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -1,4 +1,4 @@ -{% load admin_static %}{% load firstof from future %} +{% load admin_static %} {% block title %}{% endblock %} diff --git a/django/contrib/admin/templates/admin/change_list_results.html b/django/contrib/admin/templates/admin/change_list_results.html index 636869895d..e3d4b2549a 100644 --- a/django/contrib/admin/templates/admin/change_list_results.html +++ b/django/contrib/admin/templates/admin/change_list_results.html @@ -1,4 +1,4 @@ -{% load i18n admin_static %}{% load cycle from future %} +{% load i18n admin_static %} {% if result_hidden_fields %}
{# DIV for HTML validation #} {% for item in result_hidden_fields %}{{ item }}{% endfor %} diff --git a/django/contrib/admin/templates/admin/edit_inline/tabular.html b/django/contrib/admin/templates/admin/edit_inline/tabular.html index 9ef6e8f1d5..4548af45dc 100644 --- a/django/contrib/admin/templates/admin/edit_inline/tabular.html +++ b/django/contrib/admin/templates/admin/edit_inline/tabular.html @@ -1,4 +1,4 @@ -{% load i18n admin_static admin_modify %}{% load cycle from future %} +{% load i18n admin_static admin_modify %}