fix transfer translation for news
This commit is contained in:
parent
2bceb0b309
commit
33a616ab96
|
|
@ -145,7 +145,7 @@ def add_tags():
|
|||
)
|
||||
if created:
|
||||
text_value = ' '.join(new_tag.value.split('_'))
|
||||
translation = SiteInterfaceDictionary(page={'en-GB': text_value}, keywords=f'tag.{new_tag.category}.{new_tag.value}')
|
||||
translation = SiteInterfaceDictionary(text={'en-GB': text_value}, keywords=f'tag.{new_tag.category}.{new_tag.value}')
|
||||
translation.save()
|
||||
new_tag.translation = translation
|
||||
new_tag.save()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user