mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Apply admin mixin in example project
This commit is contained in:
parent
ba923eba43
commit
9df71d2d5f
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,12 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from embed_video.admin import AdminVideoMixin
|
||||
|
||||
from .models import Post
|
||||
|
||||
|
||||
admin.site.register(Post)
|
||||
class PostAdmin(AdminVideoMixin, admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
admin.site.register(Post, PostAdmin)
|
||||
|
|
|
|||
Loading…
Reference in a new issue