X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/d7186e88fcc0cf5d5449a16d3907e01aaafc484e..ad43f8a3a57a3bb73edefe7e815328676cabcdb1:/src/youtube/admin.py?ds=sidebyside 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)