浏览代码

Clean up album admin with new data

Colin Powell 2 年之前
父节点
当前提交
41cdb96e94
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      vrobbler/apps/music/admin.py

+ 12 - 2
vrobbler/apps/music/admin.py

@@ -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_filter = ("year",)
+    list_display = (
+        "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',