Skip to content

Commit

Permalink
feat: make templates compatible with Django 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Sep 9, 2020
1 parent 9b40a03 commit 57b1bcf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_modify staticfiles %}
{% load i18n admin_modify static %}

{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
{% block breadcrumbs %}{% if not is_popup %}
Expand Down
2 changes: 1 addition & 1 deletion grappelli_safe/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}

<!-- LOADING -->
{% load staticfiles i18n %}
{% load static i18n %}

<!-- STYLESHEETS / EXTRASTYLE -->
{% block stylesheets %}
Expand Down
2 changes: 1 addition & 1 deletion grappelli_safe/templates/admin/change_form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "admin/base_site.html" %}

<!-- LOADING -->
{% load i18n admin_urls admin_static admin_modify %}
{% load i18n admin_urls static admin_modify %}

<!-- JAVASCRIPTS -->
{% block extrahead %}
Expand Down
2 changes: 1 addition & 1 deletion grappelli_safe/templates/admin/change_list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "admin/base_site.html" %}

<!-- LOADING -->
{% load staticfiles admin_list i18n %}
{% load static admin_list i18n %}

<!-- STYLES -->
{% block extrastyle %}
Expand Down
2 changes: 1 addition & 1 deletion grappelli_safe/templates/admin/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "admin/base_site.html" %}

<!-- LOADING -->
{% load i18n staticfiles %}
{% load i18n static %}

<!-- STYLES & SCRIPTS -->
{% block stylesheets %}
Expand Down
4 changes: 2 additions & 2 deletions grappelli_safe/templates/admin/login.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "admin/base_site.html" %}

<!-- LOADING -->
{% load i18n %}
{% load i18n static %}

<!-- STYLESHEETS -->
{% block stylesheets %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% load staticfiles %}{% static "grappelli/css/login.css" %}" />
<link rel="stylesheet" type="text/css" href="{% static "grappelli/css/login.css" %}" />
{% endblock %}

<!-- BODYCLASS -->
Expand Down
2 changes: 1 addition & 1 deletion grappelli_safe/templates/admin/search_form.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles i18n %}
{% load static i18n %}

{% if cl.search_fields %}

Expand Down

0 comments on commit 57b1bcf

Please sign in to comment.