Commit b4908449 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Added a comma in the end of the parameter of the list_filter of AlbumAdmin and...

Added a comma in the end of the parameter of the list_filter of AlbumAdmin and SongAdmin to make it a tuple
parent 3857eed6
...@@ -12,13 +12,13 @@ class AlbumAdmin(admin.ModelAdmin): ...@@ -12,13 +12,13 @@ class AlbumAdmin(admin.ModelAdmin):
model = Album model = Album
list_display = ('album_name', 'description', 'release_date', 'label', 'song_count') list_display = ('album_name', 'description', 'release_date', 'label', 'song_count')
search_display = ('album_name', 'description', 'label') search_display = ('album_name', 'description', 'label')
list_filter = ('album_name') list_filter = ('album_name',)
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')
search_display = ('song_title', 'lyrics') search_display = ('song_title', 'lyrics')
list_filter = ('song_title') list_filter = ('song_title',)
admin.site.register(Artist, ArtistAdmin) admin.site.register(Artist, ArtistAdmin)
......
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