chore(migrations/0007_coursepage_allowed_groups.py): add allowed_groups field
This commit is contained in:
20
home/migrations/0007_coursepage_allowed_groups.py
Normal file
20
home/migrations/0007_coursepage_allowed_groups.py
Normal 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'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user