From ca64247f1b3670c876c4ef8cd7873e9351b10edd Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 19 Mar 2024 11:00:06 +0100 Subject: [PATCH] fix ca_ES for ca in models --- idhub/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idhub/models.py b/idhub/models.py index 7843d4c..c5841da 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -537,7 +537,7 @@ class Schemas(models.Model): if request: language_code = request.LANGUAGE_CODE if self._is_catalan_code(language_code): - language_code = 'ca' + language_code = 'ca_ES' return language_code @@ -549,7 +549,7 @@ class Schemas(models.Model): return None def _is_catalan_code(self, language_code): - return language_code == 'ca_ES' + return language_code == 'ca' @name.setter def name(self, value):