fix filter old_estab
This commit is contained in:
parent
4059446a3c
commit
20b9b9affd
|
|
@ -17,7 +17,7 @@ def transfer_establishment():
|
|||
old_establishments = Establishments.objects.exclude(
|
||||
Q(type='Wineyard') |
|
||||
Q(location__timezone__isnull=True),
|
||||
id__in=Establishment.objects.all().values_list('old_id', flat=True)
|
||||
id__in=list(Establishment.objects.all().values_list('old_id', flat=True))
|
||||
).prefetch_related(
|
||||
'establishmentinfos_set',
|
||||
'schedules_set',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user