30 lines
915 B
Python
30 lines
915 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.11 on 2017-08-17 17:12
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('label', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='VideoClip',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('title', models.CharField(max_length=256)),
|
||
|
('year', models.IntegerField()),
|
||
|
('embed', models.TextField()),
|
||
|
('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='videos', to='label.Artist')),
|
||
|
],
|
||
|
options={
|
||
|
'ordering': ('year', 'title'),
|
||
|
},
|
||
|
),
|
||
|
]
|