Fixed Django 1.8 deprecation warnings on "cycle" and "firstof" template tags
This commit is contained in:
parent
3a0bf2c40c
commit
f2f32b0bc9
|
@ -1,4 +1,5 @@
|
||||||
{% extends "admin_tools/dashboard/module.html" %}
|
{% extends "admin_tools/dashboard/module.html" %}
|
||||||
|
{% load cycle from future %}
|
||||||
{% block module_content %}
|
{% block module_content %}
|
||||||
<ul>
|
<ul>
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% extends "admin_tools/dashboard/module.html" %}
|
{% extends "admin_tools/dashboard/module.html" %}
|
||||||
|
{% load cycle from future %}
|
||||||
{% block module_content %}
|
{% block module_content %}
|
||||||
<ul class="{{ module.layout }}">
|
<ul class="{{ module.layout }}">
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "admin_tools/dashboard/module.html" %}
|
{% extends "admin_tools/dashboard/module.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}{% load cycle from future %}
|
||||||
{% block module_content %}
|
{% block module_content %}
|
||||||
<ul>
|
<ul>
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load firstof from future %}
|
||||||
{% url 'admin-tools-menu-add-bookmark' as form_url %}
|
{% url 'admin-tools-menu-add-bookmark' as form_url %}
|
||||||
{% if form_url %}
|
{% if form_url %}
|
||||||
<form id="bookmark-form" action="{{ form_url }}" method="POST">
|
<form id="bookmark-form" action="{{ form_url }}" method="POST">
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load firstof from future %}
|
||||||
{% url 'admin-tools-menu-remove-bookmark' bookmark.id as form_url%}
|
{% url 'admin-tools-menu-remove-bookmark' bookmark.id as form_url%}
|
||||||
{% if form_url %}
|
{% if form_url %}
|
||||||
<form id="bookmark-form" action="{{ form_url }}" method="POST">
|
<form id="bookmark-form" action="{{ form_url }}" method="POST">
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% load theming_tags %}
|
{% 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">
|
<!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 %}>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
|
||||||
<head>
|
<head>
|
||||||
|
|
Loading…
Reference in New Issue