1 # Generated by Django 3.0.4 on 2020-05-15 16:34
3 from django.db import migrations
6 def move_cards(apps, schema_editor):
7 YouTube = apps.get_model('youtube', 'YouTube')
8 Card = apps.get_model('youtube', 'Card')
9 for yt in YouTube.objects.all():
14 duration=yt.intro_card_duration or 0,
21 duration=yt.outro_card_duration or 0,
27 class Migration(migrations.Migration):
30 ('youtube', '0005_auto_20200515_1634'),
36 migrations.RunPython.noop,