diff --git a/geonode/assets/management/commands/migrate_file_to_assets.py b/geonode/assets/management/commands/migrate_file_to_assets.py index ab75c7ca161..0c57fd2b54b 100644 --- a/geonode/assets/management/commands/migrate_file_to_assets.py +++ b/geonode/assets/management/commands/migrate_file_to_assets.py @@ -124,7 +124,7 @@ def handle(self, **options): logger.info("Updating location field with new folder value") if len(asset.location) == 1: - asset.location = dest + asset.location = [dest] else: asset.location = [x.replace(source, dest) for x in asset.location] asset.save()