From c69ef65d79256079843718640adb4a355cd24f72 Mon Sep 17 00:00:00 2001 From: Dmitriy Kuzmenko Date: Sun, 3 Nov 2019 00:36:19 +0300 Subject: [PATCH] add filter for description --- .../management/commands/add_establishment_description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/establishment/management/commands/add_establishment_description.py b/apps/establishment/management/commands/add_establishment_description.py index 4fc43409..380e2f1f 100644 --- a/apps/establishment/management/commands/add_establishment_description.py +++ b/apps/establishment/management/commands/add_establishment_description.py @@ -42,7 +42,7 @@ class Command(BaseCommand): ) for es_id, locale, text in text_qs: - establishment = Establishment.objects.filter(old_id=es_id, description__isnull=False).first() + establishment = Establishment.objects.filter(old_id=es_id, description__isnull=True).first() if establishment: description = establishment.description description.update({