Compatibilité avec Django 5.2

This commit is contained in:
Claude Paroz 2025-08-14 18:10:17 +02:00
parent 32d63a0585
commit 17093ca420
3 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -470,7 +470,7 @@ class ExpertEdeLetterPdf(CompensationForm, EpcBaseDocTemplate):
"CPNE Pôle Santé et Social, rue Sophie-Mairet 29-31 - 2300 La Chaux-de-Fonds<br/><br/>"
)
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))