Commit 9c106e36 authored by Nate Brevin A. Que's avatar Nate Brevin A. Que

Added label and song_count fields to the Album Model.

parent f201b1df
# Generated by Django 3.2 on 2023-02-20 04:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_auto_20230220_1240'),
]
operations = [
migrations.AddField(
model_name='album',
name='label',
field=models.CharField(default='', max_length=50),
),
migrations.AddField(
model_name='album',
name='song_count',
field=models.IntegerField(default=1),
),
]
...@@ -13,6 +13,8 @@ class Album(models.Model): ...@@ -13,6 +13,8 @@ class Album(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE) artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
description = models.CharField(max_length=255) description = models.CharField(max_length=255)
release_date = models.DateField() release_date = models.DateField()
label = models.CharField(max_length=50, default="")
song_count = models.IntegerField(default=1)
class Song(models.Model): class Song(models.Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment