Commit f32ecf0e authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Create class VideoFile

parent a6934054
# Generated by Django 2.2.24 on 2021-07-26 17:27
import courses.videos.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0029_auto_20210719_2107'),
]
operations = [
migrations.CreateModel(
name='VideoFile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('file', models.FileField(default=None, null=True, upload_to=courses.videos.models.get_upload_path)),
('video', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='file', to='courses.Video', verbose_name='file')),
],
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment