Start to reorganize views a little.
[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     search_fields = ["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)