Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two new event programmes #5993

Merged
merged 1 commit into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions datahub/event/migrations/0031_update_event_programme.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from pathlib import PurePath
from django.db import migrations

from datahub.core.migration_utils import load_yaml_data_in_migration


def update_event_programmes(apps, schema_editor):
load_yaml_data_in_migration(
apps, PurePath(__file__).parent / "0031_update_event_programme.yaml"
)


class Migration(migrations.Migration):
dependencies = [
('event', '0030_add_stova_event_relation'),
]

operations = [
migrations.RunPython(update_event_programmes, migrations.RunPython.noop),
]
6 changes: 6 additions & 0 deletions datahub/event/migrations/0031_update_event_programme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- model: event.programme
pk: 819e049e-d28e-4f55-be97-37ee88023d88
fields: { disabled_on: null, name: Export Summit Flagship 2025 }
- model: event.programme
pk: 9570faa5-9bb9-4f03-b09c-0b496aa77313
fields: { disabled_on: null, name: Export Summit Roadshows 2025 }