#3 - fix import and cleanup RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated

This commit is contained in:
shtalinberg 2015-07-03 13:25:15 +03:00
parent 2a88e979fd
commit 6f4ee9e016
5 changed files with 2 additions and 6 deletions

View File

@ -5,7 +5,7 @@ Module where admin tools dashboard modules classes are defined.
from django.utils.text import capfirst
from django.core.urlresolvers import reverse
from django.contrib.contenttypes.models import ContentType
from django.forms.util import flatatt
from django.forms.utils import flatatt
from django.utils.translation import ugettext_lazy as _
from django.utils.itercompat import is_iterable

View File

@ -1,5 +1,4 @@
{% load i18n admin_tools_dashboard_tags %}
{% load url from future %}
{% block dashboard_scripts %}
<script type="text/javascript" src="{{ media_url }}/admin_tools/js/utils.js"></script>
@ -79,4 +78,4 @@
{% for module in dashboard.children %}
{% admin_tools_render_dashboard_module module %}{% endfor %}
</div>
{% endblock %}
{% endblock %}

View File

@ -1,4 +1,3 @@
{% load url 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,4 +1,3 @@
{% load url 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,3 @@
{% load url from future %}
{% load theming_tags %}
<!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 %}>