Commit 20299b4e authored by Jose Gabriel L. Salas's avatar Jose Gabriel L. Salas

added search fields and lists to display per class and fixed formatting

parent 3344249d
...@@ -18,7 +18,7 @@ class ArtistAdmin(admin.ModelAdmin): ...@@ -18,7 +18,7 @@ class ArtistAdmin(admin.ModelAdmin):
search_fields = ('artist_name', 'birth_name',) search_fields = ('artist_name', 'birth_name',)
list_filter = ('artist_name', 'birth_name',) list_filter = ('artist_name', 'birth_name',)
fieldsets = [('Artist Data', {'fields': [('artist_name', 'birth_name'), fieldsets = [('Artist Data', {'fields': [('artist_name', 'birth_name'),
'bio', 'monthly_listeners']}), ] 'bio', 'monthly_listeners']}),]
class AlbumAdmin(admin.ModelAdmin): class AlbumAdmin(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