Clean up album admin with new data
This commit is contained in:
@ -8,8 +8,18 @@ from scrobbles.admin import ScrobbleInline
|
|||||||
@admin.register(Album)
|
@admin.register(Album)
|
||||||
class AlbumAdmin(admin.ModelAdmin):
|
class AlbumAdmin(admin.ModelAdmin):
|
||||||
date_hierarchy = "created"
|
date_hierarchy = "created"
|
||||||
list_display = ("name", "year", "musicbrainz_id")
|
list_display = (
|
||||||
list_filter = ("year",)
|
"name",
|
||||||
|
"year",
|
||||||
|
"primary_artist",
|
||||||
|
"theaudiodb_genre",
|
||||||
|
"theaudiodb_mood",
|
||||||
|
"musicbrainz_id",
|
||||||
|
)
|
||||||
|
list_filter = (
|
||||||
|
"theaudiodb_score",
|
||||||
|
"theaudiodb_genre",
|
||||||
|
)
|
||||||
ordering = ("name",)
|
ordering = ("name",)
|
||||||
filter_horizontal = [
|
filter_horizontal = [
|
||||||
'artists',
|
'artists',
|
||||||
|
|||||||
Reference in New Issue
Block a user