Improved list view for artist and album

parent 19565423
No preview for this file type
...@@ -6,14 +6,14 @@ class ArtistAdmin(admin.ModelAdmin): ...@@ -6,14 +6,14 @@ class ArtistAdmin(admin.ModelAdmin):
model = Artist model = Artist
search_fields = ('artist_name',) search_fields = ('artist_name',)
list_display = ('artist_name',) list_display = ('artist_name','monthly_listeners',)
list_filter = ('artist_name',) list_filter = ('artist_name',)
class AlbumAdmin(admin.ModelAdmin): class AlbumAdmin(admin.ModelAdmin):
model = Album model = Album
search_fields = ('album_name', 'artist',) search_fields = ('album_name', 'artist',)
list_display = ('album_name', 'artist',) list_display = ('album_name', 'artist','release_date',)
list_filter = ('album_name', 'artist',) list_filter = ('album_name', 'artist',)
class SongAdmin(admin.ModelAdmin): class SongAdmin(admin.ModelAdmin):
......
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