3c36eee1f9e230fc81a982180220b45e6a1beeaa
[audio.git] / src / youtube / admin.py
1 from django.contrib import admin
2 from . import models
3
4
5 class CardInline(admin.TabularInline):
6     model = models.Card
7
8
9 class YouTubeAdmin(admin.ModelAdmin):
10     inlines = [CardInline]
11
12
13 admin.site.register(models.YouTube, YouTubeAdmin)
14
15
16 admin.site.register(models.Font)
17
18
19 class ThumbnailTemplateAdmin(admin.ModelAdmin):
20     list_display = ['order', 'genres', 'collections']
21
22 admin.site.register(models.ThumbnailTemplate, ThumbnailTemplateAdmin)