Commit 89962d1c authored by Julia Anishka's avatar Julia Anishka

changed bio field to textfield

parent fa4eeded
# Generated by Django 3.2 on 2023-02-20 16:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='album',
name='label',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AddField(
model_name='album',
name='song_count',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='artist',
name='bio',
field=models.CharField(blank=True, max_length=700, null=True),
),
migrations.AddField(
model_name='artist',
name='birth_name',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AddField(
model_name='song',
name='lyrics',
field=models.TextField(blank=True, max_length=5000, null=True),
),
migrations.AddField(
model_name='song',
name='music_video',
field=models.BooleanField(blank=True, null=True),
),
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(verbose_name='date released'),
),
]
...@@ -5,7 +5,7 @@ class Artist(models.Model): ...@@ -5,7 +5,7 @@ class Artist(models.Model):
artist_name = models.CharField(max_length = 50) artist_name = models.CharField(max_length = 50)
monthly_listeners = models.IntegerField(default = 0) monthly_listeners = models.IntegerField(default = 0)
birth_name = models.CharField(max_length = 50, null=True, blank=True) birth_name = models.CharField(max_length = 50, null=True, blank=True)
bio = models.CharField(max_length = 700, null=True, blank=True) bio = models.TextField(max_length = 700, null=True, blank=True)
def __str__(self): def __str__(self):
return self.artist_name return self.artist_name
......
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