Commit 390c17d0 authored by RJC's avatar RJC

added song_length field to song model

parent 4d1e39d9
# Generated by Django 3.2 on 2023-02-13 11:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='song',
name='song_length',
field=models.IntegerField(null=True),
),
]
......@@ -17,6 +17,7 @@ class Song(models.Model):
song_title = models.CharField(max_length=255, null=True)
artist = models.ForeignKey(Artist, related_name='song', on_delete=models.CASCADE, null=True)
album = models.ForeignKey(Album, related_name='song', on_delete=models.CASCADE, null=True)
song_length = models.IntegerField(null=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