From 17093ca420584b78ca6848b7b7f8297f4dc62fb2 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 14 Aug 2025 18:10:17 +0200 Subject: [PATCH] =?UTF-8?q?Compatibilit=C3=A9=20avec=20Django=205.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/settings.py | 2 +- requirements.txt | 5 +++-- stages/pdf.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/settings.py b/common/settings.py index 914fd89..f6532e1 100644 --- a/common/settings.py +++ b/common/settings.py @@ -25,7 +25,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' TIME_ZONE = 'Europe/Zurich' -LANGUAGE_CODE = 'fr' +LANGUAGE_CODE = 'fr-ch' USE_I18N = True diff --git a/requirements.txt b/requirements.txt index a92d67a..4c2b1e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ -Django~=4.2.0 +django~=5.2.0 +psycopg tabimport==0.5.1 xlrd<2 # Required by tabimport -openpyxl==3.1.2 +openpyxl==3.1.5 reportlab django-summernote==0.8.20.0 diff --git a/stages/pdf.py b/stages/pdf.py index 71c0588..5524fce 100644 --- a/stages/pdf.py +++ b/stages/pdf.py @@ -470,7 +470,7 @@ class ExpertEdeLetterPdf(CompensationForm, EpcBaseDocTemplate): "CPNE Pôle Santé et Social, rue Sophie-Mairet 29-31 - 2300 La Chaux-de-Fonds

" ) self.story.append(Paragraph(date_text.format( - date=django_format(exam_data['date_exam'], 'l j F Y à H\hi'), + date=django_format(exam_data['date_exam'], r'l j F Y à H\hi'), salle=exam_data['room'], ), style_bold_center))