From 0fbfbbad4509a619379e2142510b25cb40d745ea Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Tue, 3 Dec 2024 19:53:52 +0100 Subject: [PATCH 1/2] Only create default qualifications on migrate if there are none in DB --- backend/core/startup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/core/startup.py b/backend/core/startup.py index d74419221..08395187f 100644 --- a/backend/core/startup.py +++ b/backend/core/startup.py @@ -495,7 +495,8 @@ def startup(sender: AppConfig, **kwargs): # Create default Qualifications try: - Qualification.create_default_qualifications() + if Qualification.objects.count() == 0: + Qualification.create_default_qualifications() except Exception as e: logger.error("Error creating default qualifications", exc_info=e) From f801c08b8cc4df1107ac5cb739e9b63710a57ba6 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:57:20 +0100 Subject: [PATCH 2/2] Update fr.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sécurité -> sûreté --- frontend/messages/fr.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index 29ce9296c..8f771b2e1 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -792,7 +792,7 @@ "licenseAboutToExpireWarning": "Il reste {days_left} jours avant l'expiration de votre licence.", "proof": "Preuve", "privacy": "Confidentialité", - "safety": "Sécurité", + "safety": "Sûreté", "noExpirationDateSet": "Aucune date d'expiration définie", "sumpageTotal": "Total", "sumpageActive": "Actif",