forked from rc/aircox
continue migration: make website working
This commit is contained in:
@ -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]
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user