From 51a69ce2f9bbc5b105a51eb32e57187c7335399c Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 7 Mar 2017 23:30:45 +0100 Subject: [PATCH] replace use of django-select2 by xstatic-select2 --- debian/control | 1 + setup.py | 2 +- welco/settings.py | 2 +- welco/templates/welco/base.html | 5 +++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index 026167b..7127632 100644 --- a/debian/control +++ b/debian/control @@ -26,6 +26,7 @@ Depends: ${misc:Depends}, python-django-tenant-schemas, python-psycopg2, python-django-mellon, + python-xstatic-select2, gunicorn, graphicsmagick Recommends: nginx, postgresql diff --git a/setup.py b/setup.py index 940e08b..976ffc9 100644 --- a/setup.py +++ b/setup.py @@ -99,13 +99,13 @@ setup( ], install_requires=['django>=1.7, <1.9', 'gadjo', - 'django-select2', 'django-ckeditor<4.5.3', 'django-haystack', 'django-reversion==1.8.7', 'django-taggit', 'requests', 'whoosh', + 'XStatic-Select2', ], zip_safe=False, cmdclass={ diff --git a/welco/settings.py b/welco/settings.py index fdd35b5..033f32a 100644 --- a/welco/settings.py +++ b/welco/settings.py @@ -41,7 +41,6 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'django_select2', 'ckeditor', 'haystack', 'reversion', @@ -53,6 +52,7 @@ INSTALLED_APPS = ( 'welco.kb', 'welco.contacts', 'gadjo', + 'xstatic.pkg.select2', ) MIDDLEWARE_CLASSES = ( diff --git a/welco/templates/welco/base.html b/welco/templates/welco/base.html index 52eab82..c4fce02 100644 --- a/welco/templates/welco/base.html +++ b/welco/templates/welco/base.html @@ -1,5 +1,5 @@ {% extends "gadjo/base.html" %} -{% load i18n static django_select2_tags %} +{% load i18n static gadjo %} {% block page-title %}{% firstof site_title "Welco" %}{% endblock %} {% block site-title %}{% firstof site_title "Welco" %}{% endblock %} @@ -19,5 +19,6 @@ {{ block.super }} -{% import_django_select2_js_css %} + + {% endblock %} -- 2.1.4