From 6a521b6121217da63eb52712a0173b3716620abe Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 31 May 2025 12:18:12 +0200 Subject: [PATCH] =?UTF-8?q?Noms=20des=20fichiers=20en=20fran=C3=A7ais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- participation/management/commands/export_solutions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/participation/management/commands/export_solutions.py b/participation/management/commands/export_solutions.py index 1fcf130..23c6b62 100644 --- a/participation/management/commands/export_solutions.py +++ b/participation/management/commands/export_solutions.py @@ -5,11 +5,13 @@ from pathlib import Path from django.conf import settings from django.core.management import BaseCommand +from django.utils.translation import activate from participation.models import Solution, Tournament class Command(BaseCommand): def handle(self, *args, **kwargs): + activate(settings.PREFERRED_LANGUAGE_CODE) base_dir = Path(__file__).parent.parent.parent.parent base_dir /= "output" if not base_dir.is_dir():