Remove unused fields, add more project settings.
[audio.git] / src / archive / admin.py
1 from archive.models import Project, Audiobook, License, Config
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", "duration", "license", "youtube_volume"]
9     list_filter = ["license"]
10     search_fields = ["title", "slug", "part_name", "youtube_volume"]
11     list_editable = ["youtube_volume"]
12     readonly_fields = ['duration']
13
14
15 admin.site.register(Audiobook, AudiobookAdmin)
16 admin.site.register(License)
17 admin.site.register(Config)