# Generated by Django 5.2.6 on 2025-10-21 19:59

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('content', '0064_academicclass_created_at_academicclass_updated_at_and_more'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='galleryitem',
            name='youtube_embed_url',
        ),
        migrations.AddField(
            model_name='galleryitem',
            name='video',
            field=models.FileField(blank=True, help_text='Upload if Kind=Video. Must be MP4 format.', upload_to='gallery/videos/'),
        ),
        migrations.AlterField(
            model_name='galleryitem',
            name='kind',
            field=models.CharField(choices=[('image', 'Image'), ('video', 'Video (MP4)')], default='image', help_text='Choose ‘Image’ to upload a photo or ‘Video (MP4)’ for a local video upload.', max_length=10),
        ),
        migrations.AlterField(
            model_name='galleryitem',
            name='thumbnail',
            field=models.ImageField(blank=True, help_text='Optional custom thumbnail for grids (e.g., 600×400). If empty, the main image is used for images; for videos, a placeholder is used unless provided.', upload_to='gallery/thumbs/'),
        ),
    ]
