Skip to content

Commit 271f0b9

Browse files
renzonrenzon
authored andcommitted
Added Video to Admin
close #149
1 parent 139389f commit 271f0b9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

pythonpro/promos/admin.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1+
from django.contrib import admin
12

2-
# Register your models here.
3+
from pythonpro.promos.models import Video
4+
5+
6+
class VideoAdmin(admin.ModelAdmin):
7+
list_display = ['title']
8+
9+
10+
admin.site.register(Video, VideoAdmin)

0 commit comments

Comments
 (0)