From 2f05ca7e9015ca660855a9488ff7be559ab57951 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Tue, 17 Dec 2024 16:06:03 -0800 Subject: [PATCH] Drop and recreate M2M field to avoid constraint errors. --- .../migrations/0039_channelmetadata_ordered_fields.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kolibri/core/content/migrations/0039_channelmetadata_ordered_fields.py b/kolibri/core/content/migrations/0039_channelmetadata_ordered_fields.py index ad51ea2940c..52a96272b21 100644 --- a/kolibri/core/content/migrations/0039_channelmetadata_ordered_fields.py +++ b/kolibri/core/content/migrations/0039_channelmetadata_ordered_fields.py @@ -22,11 +22,16 @@ class Migration(migrations.Migration): name="included_grade_levels", field=models.TextField(blank=True, null=True), ), - sortedm2m.operations.AlterSortedManyToManyField( + migrations.RemoveField( + model_name="channelmetadata", + name="included_languages", + ), + migrations.AddField( model_name="channelmetadata", name="included_languages", field=sortedm2m.fields.SortedManyToManyField( blank=True, + help_text=None, related_name="channels", to="content.Language", verbose_name="languages",