fix ca_ES for ca in models
This commit is contained in:
parent
1c901d673c
commit
ca64247f1b
|
@ -537,7 +537,7 @@ class Schemas(models.Model):
|
||||||
if request:
|
if request:
|
||||||
language_code = request.LANGUAGE_CODE
|
language_code = request.LANGUAGE_CODE
|
||||||
if self._is_catalan_code(language_code):
|
if self._is_catalan_code(language_code):
|
||||||
language_code = 'ca'
|
language_code = 'ca_ES'
|
||||||
|
|
||||||
return language_code
|
return language_code
|
||||||
|
|
||||||
|
@ -549,7 +549,7 @@ class Schemas(models.Model):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _is_catalan_code(self, language_code):
|
def _is_catalan_code(self, language_code):
|
||||||
return language_code == 'ca_ES'
|
return language_code == 'ca'
|
||||||
|
|
||||||
@name.setter
|
@name.setter
|
||||||
def name(self, value):
|
def name(self, value):
|
||||||
|
|
Loading…
Reference in New Issue