X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/d7186e88fcc0cf5d5449a16d3907e01aaafc484e..776645a64178b154e8b41b7d76947b47bef91dc6:/src/youtube/admin.py?ds=inline diff --git a/src/youtube/admin.py b/src/youtube/admin.py index e6fe370..2edc745 100644 --- a/src/youtube/admin.py +++ b/src/youtube/admin.py @@ -2,4 +2,15 @@ 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)