f6fcd4a83c47a7b81d455143c6c4819d3d6b130d
[audio.git] / src / archive / admin.py
1 from archive.models import Project, Audiobook, Piece, License
2 from django.contrib import admin
3
4 admin.site.register(Project)
5
6
7 class AudiobookAdmin(admin.ModelAdmin):
8     list_display = ["title", "slug", "index", "part_name", "license", "youtube_volume"]
9     list_filter = ["license"]
10     list_search = ["title", "slug", "part_name", "youtube_volume"]
11     list_editable = ["youtube_volume"]
12
13
14 admin.site.register(Audiobook, AudiobookAdmin)
15 admin.site.register(Piece)
16 admin.site.register(License)