Updated admin.py to fix errors

Edited the list filters of the models to show the appropriate output.
parent 675c06f1
......@@ -10,12 +10,12 @@ class ArtistAdmin(admin.ModelAdmin):
list_display = ('artist_name', 'birth_name', 'monthly_listeners')
list_filter = ('artist_name',)
list_filter = ('artist_name', 'birth_name')
fieldsets = [
('Artist Information', {
'fields': [
('artist_name','birth_name'), 'monthly_listeners', 'bio'
('artist_name','birth_name'), 'monthly_ listeners', 'bio'
]
})
]
......@@ -45,7 +45,7 @@ class SongAdmin(admin.ModelAdmin):
list_display = ('song_title', 'song_length', 'lyrics', 'music_video')
list_filter=('song_title', 'song_title')
list_filter=('song_title',)
fieldsets = [
('Song Information', {
......
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