add filter for transfer establishment by fr
This commit is contained in:
parent
4e76fc966e
commit
4108de5931
|
|
@ -14,7 +14,7 @@ def transfer_establishment():
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
# todo: filter(location__city__name__icontains='paris')
|
# 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(type='Wineyard') |
|
||||||
Q(location__timezone__isnull=True)
|
Q(location__timezone__isnull=True)
|
||||||
).prefetch_related(
|
).prefetch_related(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user