fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[audio.git]
/
src
/
youtube
/
admin.py
diff --git
a/src/youtube/admin.py
b/src/youtube/admin.py
index
e6fe370
..
2edc745
100644
(file)
--- a/
src/youtube/admin.py
+++ b/
src/youtube/admin.py
@@
-2,4
+2,15
@@
from django.contrib import admin
from . import models
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)