Commit c3383e8f authored by Migs Atienza's avatar Migs Atienza

Updated Models + Migrated v2

parent 198d04f3
# Generated by Django 4.1.6 on 2023-02-21 14:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0003_alter_song_lyrics'),
]
operations = [
migrations.AlterField(
model_name='song',
name='song_length',
field=models.DurationField(),
),
]
......@@ -21,7 +21,7 @@ class Song(models.Model):
song_title = models.CharField(max_length=100)
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
album = models.ForeignKey(Album, on_delete=models.CASCADE)
song_length = models.TimeField()
song_length = models.DurationField()
music_video = models.BooleanField(default=False)
lyrics = models.TextField(max_length=2500, default="")
# Create your models here.
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