Fixed Django 1.8 deprecation warnings on "cycle" and "firstof" template tags

This commit is contained in:
David Jean Louis 2015-07-04 15:12:46 +02:00
parent 3a0bf2c40c
commit f2f32b0bc9
6 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{% extends "admin_tools/dashboard/module.html" %}
{% load cycle from future %}
{% block module_content %}
<ul>
{% spaceless %}

View File

@ -1,4 +1,5 @@
{% extends "admin_tools/dashboard/module.html" %}
{% load cycle from future %}
{% block module_content %}
<ul class="{{ module.layout }}">
{% spaceless %}

View File

@ -1,5 +1,5 @@
{% extends "admin_tools/dashboard/module.html" %}
{% load i18n %}
{% load i18n %}{% load cycle from future %}
{% block module_content %}
<ul>
{% spaceless %}

View File

@ -1,3 +1,4 @@
{% load firstof from future %}
{% url 'admin-tools-menu-add-bookmark' as form_url %}
{% if form_url %}
<form id="bookmark-form" action="{{ form_url }}" method="POST">

View File

@ -1,3 +1,4 @@
{% load firstof from future %}
{% url 'admin-tools-menu-remove-bookmark' bookmark.id as form_url%}
{% if form_url %}
<form id="bookmark-form" action="{{ form_url }}" method="POST">

View File

@ -1,4 +1,5 @@
{% load theming_tags %}
{% load firstof from future %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>