Commit e5e3835a authored by Javi Ng's avatar Javi Ng

created admin user, fixed issue with filter arguments

parent 9e5927fa
No preview for this file type
......@@ -25,7 +25,7 @@ class AlbumAdmin(admin.ModelAdmin):
search_fields = ("album_name", "description", "label")
# filter by album name
list_filter = ("album_name")
list_filter = ("album_name",)
# Admin page for Artist model
class SongAdmin(admin.ModelAdmin):
......@@ -38,7 +38,7 @@ class SongAdmin(admin.ModelAdmin):
search_fields = ("song_title", "lyrics")
# filter by song title
list_filter = ("song_title")
list_filter = ("song_title",)
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