chore(migrations/0007_coursepage_allowed_groups.py): add allowed_groups field

This commit is contained in:
2026-03-12 11:27:17 +01:00
parent 44ee735a2d
commit 04ee75e1e6

View File

@@ -0,0 +1,20 @@
# Generated by Django 6.0.3 on 2026-03-12 11:12
import modelcluster.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('home', '0006_coursemodulepage'),
]
operations = [
migrations.AddField(
model_name='coursepage',
name='allowed_groups',
field=modelcluster.fields.ParentalManyToManyField(help_text='Select a group to restrict access to this course. Non-members will be prompted to purchase the course to view modules.', related_name='course_pages', to='auth.group'),
),
]