add filter for description

This commit is contained in:
Dmitriy Kuzmenko 2019-11-03 00:11:08 +03:00
parent 9da10acd8e
commit 22b4b94f1b

View File

@ -42,7 +42,7 @@ class Command(BaseCommand):
)
for es_id, locale, text in text_qs:
establishment = Establishment.objects.filter(old_id=es_id).first()
establishment = Establishment.objects.filter(old_id=es_id, description__isnull=False).first()
if establishment:
description = establishment.description
description.update({