Fixed models for the final time

parent b3f05a79
# Generated by Django 4.1.6 on 2023-02-21 14:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Homepage', '0002_alter_album_album_name_alter_album_description_and_more'),
]
operations = [
migrations.AlterField(
model_name='song',
name='lyrics',
field=models.TextField(default='', max_length=2000),
),
]
...@@ -29,4 +29,7 @@ class Song(models.Model): ...@@ -29,4 +29,7 @@ class Song(models.Model):
album = models.ForeignKey(Album, on_delete = models.CASCADE) album = models.ForeignKey(Album, on_delete = models.CASCADE)
song_length = models.IntegerField(default = 0) song_length = models.IntegerField(default = 0)
music_video = models.BooleanField(default=True) music_video = models.BooleanField(default=True)
lyrics = models.TextField(max_length=1000, default=default_string) lyrics = models.TextField(max_length=2000, default=default_string)
\ No newline at end of file
def __str__(self):
return '{}'.format(self.song_title)
\ No newline at end of file
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