fix transfer translation for news

This commit is contained in:
Kuroshini 2020-01-09 13:08:59 +03:00
parent 2bceb0b309
commit 33a616ab96

View File

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