diff --git a/adminsortable/templates/adminsortable/change_form.html b/adminsortable/templates/adminsortable/change_form.html index 36d074c..17a5e2c 100644 --- a/adminsortable/templates/adminsortable/change_form.html +++ b/adminsortable/templates/adminsortable/change_form.html @@ -1,6 +1,7 @@ {% extends change_form_template_extends %} {% load i18n admin_modify %} {% load url from future %} +{% load static from staticfiles %} {% block extrahead %} {{ block.super }} @@ -10,19 +11,19 @@ {% include sortable_javascript_includes_template with inlines=True %} {% endif %} {% if has_sortable_tabular_inlines %} - + {% endif %} {% if has_sortable_stacked_inlines %} - + {% endif %} {% if has_sortable_stacked_inlines %} - + {% endif %} {% endblock %} {% block extrastyle %} {{ block.super }} {% if has_sortable_tabular_inlines or has_sortable_stacked_inlines %} - + {% endif %} {% endblock %} diff --git a/adminsortable/templates/adminsortable/change_list.html b/adminsortable/templates/adminsortable/change_list.html index 8391c0b..2655260 100755 --- a/adminsortable/templates/adminsortable/change_list.html +++ b/adminsortable/templates/adminsortable/change_list.html @@ -1,15 +1,16 @@ {% extends 'admin/change_list.html' %} {% load admin_list i18n adminsortable_tags %} +{% load static from staticfiles %} {% block extrastyle %} {{ block.super }} - + {% endblock %} {% block extrahead %} {{ block.super }} {% include sortable_javascript_includes_template %} - + {% endblock %} {% block title %}{% blocktrans with opts.verbose_name_plural|capfirst as model %}Drag and drop {{ model }} to change display order{% endblocktrans %} | {% trans 'Django site admin' %}{% endblock %} diff --git a/adminsortable/templates/adminsortable/edit_inline/stacked.html b/adminsortable/templates/adminsortable/edit_inline/stacked.html index b59b191..1b4f921 100755 --- a/adminsortable/templates/adminsortable/edit_inline/stacked.html +++ b/adminsortable/templates/adminsortable/edit_inline/stacked.html @@ -1,4 +1,5 @@ {% load i18n admin_modify adminsortable_tags %} +{% load static from staticfiles %}

{{ inline_admin_formset.opts.verbose_name_plural|title }} {% if inline_admin_formset.formset.initial_form_count > 1 %} - drag and drop to change order{% endif %}

{{ inline_admin_formset.formset.management_form }} @@ -43,11 +44,11 @@ if (typeof SelectFilter != "undefined"){ $(".selectfilter").each(function(index, value){ var namearr = value.name.split('-'); - SelectFilter.init(value.id, namearr[namearr.length-1], false, "{{ STATIC_URL }}admin/"); + SelectFilter.init(value.id, namearr[namearr.length-1], false, "{% static 'admin/' %}"); }); $(".selectfilterstacked").each(function(index, value){ var namearr = value.name.split('-'); - SelectFilter.init(value.id, namearr[namearr.length-1], true, "{{ STATIC_URL }}admin/"); + SelectFilter.init(value.id, namearr[namearr.length-1], true, "{% static 'admin/' %}"); }); } } diff --git a/adminsortable/templates/adminsortable/edit_inline/tabular.html b/adminsortable/templates/adminsortable/edit_inline/tabular.html index 0a4cf71..bd9c9e4 100644 --- a/adminsortable/templates/adminsortable/edit_inline/tabular.html +++ b/adminsortable/templates/adminsortable/edit_inline/tabular.html @@ -1,4 +1,5 @@ {% load i18n admin_modify adminsortable_tags %} +{% load static from staticfiles %}