X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/d7186e88fcc0cf5d5449a16d3907e01aaafc484e..6f51733275b7a709d519adf2505dd0dc1b886466:/src/youtube/admin.py diff --git a/src/youtube/admin.py b/src/youtube/admin.py index e6fe370..32a84d0 100644 --- a/src/youtube/admin.py +++ b/src/youtube/admin.py @@ -2,4 +2,21 @@ from django.contrib import admin from . import models -admin.site.register(models.YouTube) +class CardInline(admin.TabularInline): + model = models.Card + + +class YouTubeAdmin(admin.ModelAdmin): + inlines = [CardInline] + + +admin.site.register(models.YouTube, YouTubeAdmin) + + +admin.site.register(models.Font) + + +class ThumbnailTemplateAdmin(admin.ModelAdmin): + list_display = ['order', 'collections', 'authors', 'epochs', 'genres', 'kinds'] + +admin.site.register(models.ThumbnailTemplate, ThumbnailTemplateAdmin)