diff --git a/core/geolocation_data/GeoLite2-City.mmdb b/core/geolocation_data/GeoLite2-City.mmdb index 2382b20572..a1a5b3fc1d 100644 Binary files a/core/geolocation_data/GeoLite2-City.mmdb and b/core/geolocation_data/GeoLite2-City.mmdb differ diff --git a/core/geolocation_data/GeoLite2-Country.mmdb b/core/geolocation_data/GeoLite2-Country.mmdb index 2e9d481096..479048791d 100644 Binary files a/core/geolocation_data/GeoLite2-Country.mmdb and b/core/geolocation_data/GeoLite2-Country.mmdb differ diff --git a/core/migrations/0160_alter_herosnippet_slug.py b/core/migrations/0160_alter_herosnippet_slug.py new file mode 100644 index 0000000000..ba1a0c002e --- /dev/null +++ b/core/migrations/0160_alter_herosnippet_slug.py @@ -0,0 +1,27 @@ +# Generated by Django 4.2.15 on 2024-10-01 16:40 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0159_remove_regiontagged_content_type_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='herosnippet', + name='slug', + field=models.CharField( + choices=[ + ('export-academy-listing-page-hero', 'Hero for the Export Academy listing page'), + ('export-academy-registration-page-hero', 'Hero for the Export Academy registration page'), + ], + help_text='Select the use-case for this snippet from a fixed list of choices', + max_length=255, + unique=True, + verbose_name='Purpose', + ), + ), + ] diff --git a/core/models.py b/core/models.py index 17168dbe79..f4a52aae32 100644 --- a/core/models.py +++ b/core/models.py @@ -2133,6 +2133,13 @@ class HeroSnippet(NonPageContentSnippetBase, NonPageContentSEOMixin): 'page_path': '/export-academy/registration/', }, } + slug = models.CharField( + max_length=255, + unique=True, + verbose_name='Purpose', + help_text='Select the use-case for this snippet from a fixed list of choices', + choices=[(key, val['title']) for key, val in slug_options.items()], + ) title = models.CharField( max_length=255, null=True,