Skip to content

Commit

Permalink
[Fixes #7911] Map payload is not correclty handled
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Aug 2, 2021
1 parent 140a445 commit cd2b18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/maps/migrations/0033_convert_map_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)
]

0 comments on commit cd2b18a

Please sign in to comment.