fix ca_ES for ca in models

This commit is contained in:
Cayo Puigdefabregas 2024-03-19 11:00:06 +01:00
parent 1c901d673c
commit ca64247f1b
1 changed files with 2 additions and 2 deletions

View File

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