fix estab tags
This commit is contained in:
parent
887bc92b85
commit
aa2759d7e0
|
|
@ -10,9 +10,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
def handle(self, *args, **kwargs):
|
def handle(self, *args, **kwargs):
|
||||||
|
|
||||||
categories = legacy.KeyValueMetadata.objects.all()
|
|
||||||
existing_establishment = Establishment.objects.filter(old_id__isnull=False)
|
existing_establishment = Establishment.objects.filter(old_id__isnull=False)
|
||||||
for category in categories:
|
|
||||||
ESTABLISHMENT = 1
|
ESTABLISHMENT = 1
|
||||||
SHOP = 2
|
SHOP = 2
|
||||||
RESTAURANT = 3
|
RESTAURANT = 3
|
||||||
|
|
@ -31,7 +29,8 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
est_type, _ = EstablishmentType.objects.get_or_create(index_name=value)
|
est_type, _ = EstablishmentType.objects.get_or_create(index_name=value)
|
||||||
|
|
||||||
key_value_metadata = legacy.KeyValueMetadata.objects.filter(id__in=values_meta_id_list)
|
key_value_metadata = legacy.KeyValueMetadata.objects.filter(
|
||||||
|
id__in=values_meta_id_list)
|
||||||
|
|
||||||
# create TagCategory
|
# create TagCategory
|
||||||
for key_value in key_value_metadata:
|
for key_value in key_value_metadata:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user