fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
YT: Make sure responses ok.
[audio.git]
/
src
/
archive
/
admin.py
diff --git
a/src/archive/admin.py
b/src/archive/admin.py
index
397f973
..
577a0ae
100644
(file)
--- a/
src/archive/admin.py
+++ b/
src/archive/admin.py
@@
-1,6
+1,13
@@
-from archive.models import Project, Audiobook, Piece
+from archive.models import Project, Audiobook, Piece
, License
from django.contrib import admin
admin.site.register(Project)
from django.contrib import admin
admin.site.register(Project)
-admin.site.register(Audiobook)
+
+
+class AudiobookAdmin(admin.ModelAdmin):
+ list_filter = ['license']
+
+
+admin.site.register(Audiobook, AudiobookAdmin)
admin.site.register(Piece)
admin.site.register(Piece)
+admin.site.register(License)