Commit 3d73e3b5 authored by Nicholo Pardines's avatar Nicholo Pardines

Fixed song_count field default value by setting it to 0

parent 5f86b74b
# Generated by Django 4.1.6 on 2023-02-20 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_album_label_album_song_count_artist_bio_and_more'),
]
operations = [
migrations.AlterField(
model_name='album',
name='song_count',
field=models.IntegerField(default=0),
),
]
......@@ -28,7 +28,7 @@ class Album(models.Model):
description = models.CharField(max_length=50)
release_date = models.DateField()
label = models.CharField(max_length=60, default="TBA")
song_count = models.IntegerField(default="TBA")
song_count = models.IntegerField(default=0)
class Song(models.Model):
song_title = models.CharField(max_length=50, default="TBA")
......
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