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