diff --git a/apps/collection/management/commands/import_collection.py b/apps/collection/management/commands/import_collection.py index 0e8fa8d3..45f8ddb8 100644 --- a/apps/collection/management/commands/import_collection.py +++ b/apps/collection/management/commands/import_collection.py @@ -108,7 +108,8 @@ class Command(BaseCommand): distinct a.id, a.collection_id, - a.establishment_id + a.establishment_id, + a.active from ( select distinct @@ -160,6 +161,7 @@ class Command(BaseCommand): if est.exists(): inst = est.first() collect = Collection.objects.filter(old_id=obj['collection_id']) + collect.update(is_publish=obj['active']) print(f'COLLECT COUNT {collect.count()}') inst.collections.add(*list(collect)) # for c in collect: