Skip to content

Commit 993364a

Browse files
Fixes #12732: destination must be a list (#12746)
even for a single file, the destination must be a list not a string
1 parent 0b792cf commit 993364a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geonode/assets/management/commands/migrate_file_to_assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def handle(self, **options):
124124
logger.info("Updating location field with new folder value")
125125

126126
if len(asset.location) == 1:
127-
asset.location = dest
127+
asset.location = [dest]
128128
else:
129129
asset.location = [x.replace(source, dest) for x in asset.location]
130130
asset.save()

0 commit comments

Comments
 (0)