Commit 3ee96072 authored by Nicholo Pardines's avatar Nicholo Pardines

Added an album field to the song admin panel

parent 49afebd6
...@@ -5,7 +5,7 @@ from .models import Song, Album, Artist ...@@ -5,7 +5,7 @@ from .models import Song, Album, Artist
class SongAdmin(admin.ModelAdmin): class SongAdmin(admin.ModelAdmin):
model = Song model = Song
list_display = ('song_title', 'song_length', 'lyrics', 'music_video') list_display = ('song_title', 'song_length', 'lyrics', 'music_video')
fields = ('song_title', 'song_length', 'lyrics', 'music_video', 'artist') fields = ('song_title', 'song_length', 'lyrics', 'music_video', 'artist', 'album')
search_fields = ('song_title', 'lyrics') search_fields = ('song_title', 'lyrics')
list_filter = ('song_title',) list_filter = ('song_title',)
......
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