Last active
July 14, 2019 07:50
-
-
Save aballah-chamakh/db5816c89fc44a34797c1fc7c25b4f9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from .models import Lecture,PlayList | |
| class InLineLecture(admin.TabularInline): | |
| model = Lecture | |
| class PlayListAdmin(admin.ModelAdmin): | |
| inlines = [InLineLecture] | |
| list_display = ('title','slug') | |
| admin.site.register(Lecture) | |
| admin.site.register(PlayList,PlayListAdmin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment