Skip to content

Commit

Permalink
django 3.2 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyq committed Jul 21, 2021
1 parent 0678b28 commit 7cb418a
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static admin_modify bootstrapped_goodies_tags %}
{% load i18n admin_urls admin_modify bootstrapped_goodies_tags %}

{% block extrahead %}{{ block.super }}
{% url 'admin:jsi18n' as jsi18nurl %}
Expand Down
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n admin_static bootstrapped_goodies_tags %}
{% load i18n bootstrapped_goodies_tags %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
Expand Down
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/base_site.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base.html" %}
{% load i18n %}{% load admin_static bootstrapped_goodies_tags %}
{% load i18n %}{% load bootstrapped_goodies_tags %}

{% block title %}{% render_with_template_if_exist "admin/admin_title.html" title %} | {{ site_title|default:_('Django site admin') }}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% load i18n admin_static bootstrapped_goodies_tags %}
{% load i18n bootstrapped_goodies_tags %}
<h2 id='{% render_app_label app %}' class="app-name"><a href="{{ app.app_url }}">{% render_app_name app %}</a></h2>
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/change_form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static admin_modify bootstrapped_goodies_tags %}
{% load i18n admin_urls admin_modify bootstrapped_goodies_tags %}

{% block extrahead %}{{ block.super }}
{% url 'admin:jsi18n' as jsi18nurl %}
Expand Down
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/change_list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static admin_list bootstrapped_goodies_tags %}
{% load i18n admin_urls admin_list bootstrapped_goodies_tags %}

{% block extrastyle %}
{{ block.super }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n admin_static %}
{% load i18n %}
{% if result_hidden_fields %}
<div class="hiddenfields">{# DIV for HTML validation #}
{% for item in result_hidden_fields %}{{ item }}{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n admin_urls admin_static bootstrapped_goodies_tags %}
{% load i18n admin_urls bootstrapped_goodies_tags %}
<div class="_inline-group" id="{{ inline_admin_formset.formset.prefix }}-group">
<h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}</h2>
{{ inline_admin_formset.formset.management_form }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n admin_static admin_urls admin_modify bootstrapped_goodies_tags %}
{% load i18n admin_urls admin_modify bootstrapped_goodies_tags %}
<div class="_inline-group" id="{{ inline_admin_formset.formset.prefix }}-group">
<div class="tabular inline-related {% if forloop.last %}last-related{% endif %}">
{{ inline_admin_formset.formset.management_form }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/filer/base_site.html" %}
{% load admin_urls admin_static filer_admin_tags filermedia i18n %}
{% load admin_urls filer_admin_tags filermedia i18n %}

{% block extrahead %}{{ block.super }}
{# upload stuff #}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n l10n %}
{% load admin_urls admin_static admin_list filermedia filer_tags %}
{% load admin_urls admin_list filermedia filer_tags %}

<div id="toolbartable">
<table cellspacing="0" class="table table-striped">
Expand Down
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_static bootstrapped_goodies_tags %}
{% load i18n bootstrapped_goodies_tags %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/login.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_static bootstrapped_goodies_tags %}
{% load i18n bootstrapped_goodies_tags %}

{% block bodyclass %}{{ block.super }} login{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n admin_static %}
{% load i18n %}
<div class="related-widget-wrapper">
{{ widget }}
{% block links %}
Expand Down
2 changes: 1 addition & 1 deletion django_admin_bootstrapped/templates/admin/search_form.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n admin_static %}
{% load i18n %}
{% if cl.search_fields %}

<form class="navbar-form navbar-right" role="search" id="changelist-search" action="" method="get">
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
Expand All @@ -22,7 +21,7 @@
maintainer="Tendenci",
maintainer_email="[email protected]",
name='tendenci-django-admin-bootstrapped',
version='4.0',
version='5.0',
description='A Bootstrap theme for Django Admin',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
url='https://github.com/tendenci/django-admin-bootstrapped',
Expand All @@ -31,7 +30,7 @@
classifiers=CLASSIFIERS,
install_requires=[
'setuptools',
'Django>=1.11,<3.0',
'Django>=2.2',
],
test_suite='django_admin_bootstrapped.runtests.runtests',
packages=find_packages(),
Expand Down

0 comments on commit 7cb418a

Please sign in to comment.