continue migration: make website working

This commit is contained in:
bkfox
2019-08-05 23:45:20 +02:00
parent 432467ec8d
commit 324cf2ef0f
54 changed files with 8658 additions and 115 deletions

View File

@ -5,6 +5,13 @@ from aircox.models import Sound
from .playlist import TracksInline
class SoundInline(admin.TabularInline):
model = Sound
fields = ['type', 'path', 'duration', 'is_public']
readonly_fields = ['type']
extra = 0
@admin.register(Sound)
class SoundAdmin(admin.ModelAdmin):
def filename(self, obj):
@ -24,3 +31,4 @@ class SoundAdmin(admin.ModelAdmin):
inlines = [TracksInline]