Commit 0f0a5ce2 authored by Ian Rafael T. Aragoza's avatar Ian Rafael T. Aragoza

Altered field description on album model.

parent e0217a07
# Generated by Django 4.1.6 on 2023-02-20 13:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_album_label_album_song_count_artist_bio_and_more'),
]
operations = [
migrations.AlterField(
model_name='album',
name='description',
field=models.TextField(),
),
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(blank=True, null=True),
),
]
......@@ -20,8 +20,8 @@ class Artist(models.Model):
class Album(models.Model):
album_name = models.CharField(max_length=100)
artist = models.ForeignKey(Artist, on_delete=models.CASCADE, related_name='albums')
description = models.CharField(max_length=255)
release_date = models.DateField()
description = models.TextField()
release_date = models.DateField(blank=True, null=True)
song_count = models.IntegerField(blank=True, null=True)
label = models.CharField(max_length=100, blank=True)
......
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