From d1c17abad2e11ec282f7c4af9ba67533bde044af Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 20 Aug 2018 16:09:13 +0200 Subject: [PATCH] Add compatibility with Django 2.1 --- common/settings.py | 3 +++ requirements.txt | 2 +- templates/admin/index.html | 2 +- templates/attribution.html | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/settings.py b/common/settings.py index ffb3cd4..b6dabcc 100644 --- a/common/settings.py +++ b/common/settings.py @@ -103,6 +103,9 @@ STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesSto ALLOWED_HOSTS = ['localhost', 'stages.pierre-coullery.ch'] +# candidats admin shows confirmation_date readonly field twice. +SILENCED_SYSTEM_CHECKS = ['admin.E012'] + FABRIC_HOST = 'stages.pierre-coullery.ch' FABRIC_USERNAME = '' diff --git a/requirements.txt b/requirements.txt index 3bbde5b..5a274ad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django==2.0.1 +Django>=2.0.1,<=2.2 tabimport>=0.4.0 openpyxl==2.4.9 xlrd diff --git a/templates/admin/index.html b/templates/admin/index.html index 92d8cdc..7551e89 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -1,5 +1,5 @@ {% extends "admin/base_site.html" %} -{% load i18n admin_static %} +{% load i18n static %} {% block extrastyle %}{{ block.super }} diff --git a/templates/attribution.html b/templates/attribution.html index 0a54fea..3872ae7 100644 --- a/templates/attribution.html +++ b/templates/attribution.html @@ -1,5 +1,5 @@ {% extends "admin/base_site.html" %} -{% load i18n admin_static %} +{% load i18n static %} {% block extrastyle %}{{ block.super }}