1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-21 21:47:33 +00:00

Revise migrations

This commit is contained in:
Damillora 2020-12-17 02:25:33 +07:00
parent e4958148b1
commit ee8f443e5d
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
# Generated by Django 3.1.4 on 2020-12-16 19:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('songs', '0002_auto_20201216_1622'),
]
operations = [
migrations.AlterField(
model_name='song',
name='romanized_title',
field=models.CharField(blank=True, max_length=255),
),
migrations.AlterField(
model_name='song',
name='title',
field=models.CharField(max_length=255),
),
]

View File

@ -4,8 +4,8 @@ from django.db import models
# Create your models here. # Create your models here.
class Song(models.Model): class Song(models.Model):
branch = models.ForeignKey("categories.Branch", on_delete=models.PROTECT) branch = models.ForeignKey("categories.Branch", on_delete=models.PROTECT)
title = models.CharField(max_length=255,blank=True) title = models.CharField(max_length=255)
romanized_title = models.CharField(max_length=255) romanized_title = models.CharField(max_length=255,blank=True)
lyricist = models.ManyToManyField("artists.Artist", blank=True, related_name="written_songs") lyricist = models.ManyToManyField("artists.Artist", blank=True, related_name="written_songs")
composer = models.ManyToManyField("artists.Artist", blank=True, related_name="composed_songs") composer = models.ManyToManyField("artists.Artist", blank=True, related_name="composed_songs")
arranger = models.ManyToManyField("artists.Artist", blank=True, related_name="arranged_songs") arranger = models.ManyToManyField("artists.Artist", blank=True, related_name="arranged_songs")