Commit 306ec8ed authored by Washington99's avatar Washington99

Added entries for models

Added 10 artists, albums, and songs in each database model
parent 78436ed4
# Generated by Django 3.2 on 2023-02-21 15:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_alter_song_song_length'),
]
operations = [
migrations.AlterField(
model_name='song',
name='lyrics',
field=models.TextField(blank=True, max_length=10000),
),
]
...@@ -28,7 +28,7 @@ class Song(models.Model): ...@@ -28,7 +28,7 @@ class Song(models.Model):
album = models.ForeignKey(Album, on_delete = models.CASCADE) album = models.ForeignKey(Album, on_delete = models.CASCADE)
song_length = models.CharField(max_length = 10) song_length = models.CharField(max_length = 10)
music_video = models.BooleanField(default = False) music_video = models.BooleanField(default = False)
lyrics = models.TextField(max_length = 1000, blank = True) lyrics = models.TextField(max_length = 10000, blank = True)
def __str__(self): def __str__(self):
return "{} by {}".format(self.song_title, self.artist) return "{} by {}".format(self.song_title, self.artist)
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