add filter for transfer establishment by fr

This commit is contained in:
Dmitriy Kuzmenko 2019-11-02 09:17:18 +03:00
parent 4e76fc966e
commit 4108de5931

View File

@ -14,7 +14,7 @@ def transfer_establishment():
result = []
# todo: filter(location__city__name__icontains='paris')
old_establishments = Establishments.objects.exclude(
old_establishments = Establishments.objects.filter(location__city__country_code_2='fr').exclude(
Q(type='Wineyard') |
Q(location__timezone__isnull=True)
).prefetch_related(