Merge pull request 'add null=True to vimeo_id field so db allows NULLable, add migration' (#14) from video-vimeo-id into main

Reviewed-on: 0x2620/aab21#14
This commit is contained in:
j 2021-10-23 13:20:16 +00:00
commit 0cf6e13e90
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)
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)