Skip to content

Commit

Permalink
Merge pull request #12957 from rtibbles/fix_migration
Browse files Browse the repository at this point in the history
Drop and recreate M2M field to avoid constraint errors.
  • Loading branch information
rtibbles authored Dec 18, 2024
2 parents 597ec1a + 2f05ca7 commit dd9b9cb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dd9b9cb

Please sign in to comment.