filter for tag

This commit is contained in:
Dmitriy Kuzmenko 2019-11-02 17:06:13 +03:00
parent ea830379fc
commit f3f06fcf09

View File

@ -10,7 +10,11 @@ class Command(BaseCommand):
def handle(self, *args, **kwargs):
existing_establishment = Establishment.objects.filter(old_id__isnull=False)
existing_establishment = Establishment.objects.filter(
old_id__isnull=False
).filter(
tags__isnull=True
)
ESTABLISHMENT = 1
SHOP = 2
RESTAURANT = 3