diff --git a/openedx/core/djangoapps/content/learning_sequences/migrations/0016_through_model_for_user_partition_groups_2.py b/openedx/core/djangoapps/content/learning_sequences/migrations/0016_through_model_for_user_partition_groups_2.py new file mode 100644 index 000000000000..ecc1e4157e24 --- /dev/null +++ b/openedx/core/djangoapps/content/learning_sequences/migrations/0016_through_model_for_user_partition_groups_2.py @@ -0,0 +1,21 @@ +# Generated by Django 2.2.24 on 2021-07-07 16:45 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('learning_sequences', '0015_add_user_partition_group_unique_constraint'), + ] + + operations = [ + migrations.RemoveField( + model_name='coursesection', + name='user_partition_groups', + ), + migrations.RemoveField( + model_name='coursesectionsequence', + name='user_partition_groups', + ), + ] diff --git a/openedx/core/djangoapps/content/learning_sequences/models.py b/openedx/core/djangoapps/content/learning_sequences/models.py index 6674a2dcea36..de0881abe5f6 100644 --- a/openedx/core/djangoapps/content/learning_sequences/models.py +++ b/openedx/core/djangoapps/content/learning_sequences/models.py @@ -202,8 +202,6 @@ class CourseSection(CourseContentVisibilityMixin, TimeStampedModel): # What is our position within the Course? (starts with 0) ordering = models.PositiveIntegerField(null=False) - user_partition_groups = models.ManyToManyField(UserPartitionGroup) - new_user_partition_groups = models.ManyToManyField( UserPartitionGroup, db_index=True, @@ -266,8 +264,6 @@ class CourseSectionSequence(CourseContentVisibilityMixin, TimeStampedModel): # sequences across 20 sections, the numbering here would be 0-199. ordering = models.PositiveIntegerField(null=False) - user_partition_groups = models.ManyToManyField(UserPartitionGroup) - new_user_partition_groups = models.ManyToManyField( UserPartitionGroup, db_index=True,