add null=True to vimeo_id field so db allows NULLable, add migration

This commit is contained in:
Sanjay B 2021-10-23 16:24:40 +05:30
parent bb986912de
commit 9f66387e34
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-10-23 09:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('video', '0003_film_position'),
]
operations = [
migrations.AlterField(
model_name='film',
name='vimeo_id',
field=models.CharField(blank=True, null=True, default=None, max_length=255),
),
]

View file

@ -21,7 +21,7 @@ class Film(models.Model):
position = models.IntegerField(default=0) position = models.IntegerField(default=0)
padma_id = models.CharField(max_length=255) padma_id = models.CharField(max_length=255)
vimeo_id = models.CharField(max_length=255, default=None, blank=True) vimeo_id = models.CharField(max_length=255, default=None, blank=True, null=True)
data = models.JSONField(default=dict, blank=True) data = models.JSONField(default=dict, blank=True)