Commit 60ed5094 authored by Agu Syquia's avatar Agu Syquia

Fixed errors and populated the api

parent 57ac25a7
......@@ -19,7 +19,7 @@ class AlbumAdmin(admin.ModelAdmin):
class SongAdmin(admin.ModelAdmin):
model = Song
list_display = ('song_title', 'song_length', 'lyrics', 'music_video_flag',)
list_display = ('song_title', 'song_length', 'lyrics', 'music_video',)
search_fields = ('song_title', 'lyrics',)
list_filter = ('song_title',)
......
# Generated by Django 3.2 on 2023-02-21 13:10
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(default=69, max_length=69),
preserve_default=False,
),
migrations.AddField(
model_name='album',
name='song_count',
field=models.IntegerField(default=69),
preserve_default=False,
),
migrations.AddField(
model_name='artist',
name='bio',
field=models.TextField(default=69, max_length=700),
preserve_default=False,
),
migrations.AddField(
model_name='artist',
name='birth_name',
field=models.CharField(default=69, max_length=69),
preserve_default=False,
),
migrations.AddField(
model_name='song',
name='lyrics',
field=models.TextField(default=69),
preserve_default=False,
),
migrations.AddField(
model_name='song',
name='music_video',
field=models.BooleanField(default=False),
preserve_default=False,
),
migrations.AlterField(
model_name='song',
name='album',
field=models.CharField(max_length=69),
),
migrations.AlterField(
model_name='song',
name='artist',
field=models.CharField(max_length=69),
),
]
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