fix glitches

This commit is contained in:
bkfox
2019-10-11 16:23:00 +02:00
parent 1d7dde6f05
commit 0e48b9844c
7 changed files with 16 additions and 21 deletions

View File

@ -16,13 +16,15 @@ class TracksInline(SortableInlineAdminMixin, admin.TabularInline):
list_filter = ['artist', 'title', 'tags']
class SoundInline(admin.TabularInline):
model = Sound
fields = ['type', 'path', 'embed', 'duration', 'is_public']
readonly_fields = ['type', 'path', 'duration']
extra = 0
def get_queryset(self, request):
return super().get_queryset(request).available()
@admin.register(Sound)
class SoundAdmin(admin.ModelAdmin):