Commit 1ee24be6 authored by Bruno Martin's avatar Bruno Martin
Browse files

make course name optional

parent 27fbecdf
# Generated by Django 2.2.28 on 2023-06-27 04:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0050_auto_20230117_2219'),
]
operations = [
migrations.AlterField(
model_name='video',
name='name',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='video',
name='name_en',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='video',
name='name_es',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='video',
name='name_pt_br',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
......@@ -11,6 +11,8 @@ def get_upload_path(instance, filename):
class Video(models.Model):
name = models.CharField(
max_length=255,
null=True,
blank=True,
)
youtube_id = models.CharField(
max_length=100,
......
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