From cd2b18af02df82521156144b557a3efdfbebff33 Mon Sep 17 00:00:00 2001 From: mattiagiupponi Date: Mon, 2 Aug 2021 10:28:04 +0200 Subject: [PATCH] [Fixes #7911] Map payload is not correclty handled --- geonode/maps/migrations/0033_convert_map_blob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geonode/maps/migrations/0033_convert_map_blob.py b/geonode/maps/migrations/0033_convert_map_blob.py index f3a22ba24b6..8013fddfb3f 100644 --- a/geonode/maps/migrations/0033_convert_map_blob.py +++ b/geonode/maps/migrations/0033_convert_map_blob.py @@ -4,7 +4,7 @@ from django.db import migrations import json -def convert_geostory_blob(apps, _): +def convert_map_blob(apps, _): model = apps.get_model('base', 'ResourceBase') for item in model.objects.filter(resource_type='map'): if isinstance(item.blob, str): @@ -19,5 +19,5 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RunPython(convert_geostory_blob, migrations.RunPython.noop) + migrations.RunPython(convert_map_blob, migrations.RunPython.noop) ]