1
0
Fork 0
IdreXyz/label/migrations/0001_initial.py

51 lines
2.1 KiB
Python
Raw Permalink Normal View History

2017-08-15 15:26:32 +02:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-08-14 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Artist',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=64)),
('slug', models.SlugField()),
('image', models.ImageField(upload_to='artists')),
('url_bandcamp', models.URLField(blank=True)),
('url_soundcloud', models.URLField(blank=True)),
('genre', models.CharField(help_text='lowercase please!', max_length=256)),
('description', models.TextField(blank=True, help_text='Markdown or HTML formatting supported')),
('artist_type', models.IntegerField(default=0, help_text='main roster (0), side project (1)')),
],
options={
'ordering': ('name',),
},
),
migrations.CreateModel(
name='Release',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ident', models.IntegerField()),
('title', models.CharField(max_length=256)),
('release_type', models.IntegerField(default=0, help_text='full-length (0), EP (1), Split (2), Démo (3)')),
('cover', models.ImageField(upload_to='releases')),
('year', models.IntegerField()),
('embed', models.TextField(blank=True, help_text='HTML iframe -- for Bandcamp, add the whole tracklist')),
('description', models.TextField(blank=True)),
('contributors', models.ManyToManyField(to='label.Artist')),
],
options={
'ordering': ('ident', 'title'),
},
),
]