Commit 0a96579f authored by Julia Anishka's avatar Julia Anishka

changed descriptions field to textfield in album model

parent 89962d1c
# Generated by Django 3.2 on 2023-02-20 16:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_auto_20230221_0012'),
]
operations = [
migrations.AlterField(
model_name='artist',
name='bio',
field=models.TextField(blank=True, max_length=700, null=True),
),
]
...@@ -13,7 +13,7 @@ class Artist(models.Model): ...@@ -13,7 +13,7 @@ class Artist(models.Model):
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length = 50) album_name = models.CharField(max_length = 50)
artist = models.ForeignKey(Artist, on_delete=models.CASCADE) artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
description = models.CharField(max_length = 100) description = models.TextField(max_length = 100)
release_date = models.DateField("date released") release_date = models.DateField("date released")
label = models.CharField(max_length = 100, null=True, blank=True) label = models.CharField(max_length = 100, null=True, blank=True)
song_count = models.IntegerField(default = 0) song_count = models.IntegerField(default = 0)
......
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