From 78d414533686da4a31b1410dbf926ea5c90d90dc Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 28 Nov 2019 09:13:38 +0300 Subject: [PATCH] artisan subtype --- apps/establishment/management/commands/add_artisan_subtype.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/establishment/management/commands/add_artisan_subtype.py b/apps/establishment/management/commands/add_artisan_subtype.py index 8616f2ab..ac93d81f 100644 --- a/apps/establishment/management/commands/add_artisan_subtype.py +++ b/apps/establishment/management/commands/add_artisan_subtype.py @@ -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.'))