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

Use a "through" model for the ManyToManyField fields - phase 3 #28109

Merged
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
Original file line number Diff line number Diff line change
@@ -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',
),
]
4 changes: 0 additions & 4 deletions openedx/core/djangoapps/content/learning_sequences/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down