1
0
Fork 0
IdreXyz/label/migrations/0002_videoclip.py

30 lines
915 B
Python
Raw Permalink Normal View History

2017-08-17 19:13:54 +02:00
# -*- 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'),
},
),
]