# Generated by Django 3.2.7 on 2022-04-03 19:51

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("uploaded_material", "0003_auto_20220325_1513"),
        ("activities", "0009_remove_activity_mailing_list"),
    ]

    operations = [
        migrations.CreateModel(
            name="ActivityMaterial",
            fields=[
                (
                    "material_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="uploaded_material.material",
                    ),
                ),
                (
                    "members_only",
                    models.BooleanField(
                        default=False,
                        help_text="Make this material available for members only?",
                    ),
                ),
                (
                    "activity",
                    models.ForeignKey(
                        help_text="The related group in the community that this material belongs to.",
                        on_delete=django.db.models.deletion.CASCADE,
                        to="activities.activity",
                        verbose_name="Working Group/Project Group",
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
            bases=("uploaded_material.material",),
        ),
    ]
