artisan subtype

This commit is contained in:
alex 2019-11-28 09:13:38 +03:00
parent 9b35da1eca
commit 78d4145336

View File

@ -40,9 +40,10 @@ class Command(BaseCommand):
defaults={
'index_name': tag,
'name': {'en-GB': tag},
'establishment_type': es_type,
}
)
artisan.tags.add(subtype)
artisan.establishment_subtypes.add(subtype)
artisan.save()
self.stdout.write(self.style.WARNING(f'Artisans subtype updated.'))