fix tags command

This commit is contained in:
a.feteleu 2019-10-31 02:16:29 +03:00
parent e653e6c7da
commit a4c9c8f0cc

View File

@ -55,7 +55,11 @@ class Command(BaseCommand):
establishment__id__in=list(existing_establishment.values_list('old_id', flat=True))): establishment__id__in=list(existing_establishment.values_list('old_id', flat=True))):
new_tag, _ = Tag.objects.get_or_create( new_tag, _ = Tag.objects.get_or_create(
label={'en-GB': tag.value}, label={
'en-GB': tag.value,
'fr-FR': tag.value,
'ru-RU': tag.value,
},
value=tag.value, value=tag.value,
category=tag_category, category=tag_category,
) )