X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/d7186e88fcc0cf5d5449a16d3907e01aaafc484e..1a4d5a8854ec1d28af13d653255dfcc12aad7608:/src/youtube/admin.py 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)