live_share_youtube/player/admin.py

14 lines
297 B
Python
Raw Normal View History

2018-03-24 18:34:01 +00:00
from django.contrib import admin
2018-03-28 15:05:18 +00:00
from .models import Playlist, Link
2018-03-24 18:34:01 +00:00
2018-03-28 15:05:18 +00:00
class PlaylistAdmin(admin.ModelAdmin):
list_display = ['name', 'date']
ordering = ['date']
class LinkAdmin(admin.ModelAdmin):
pass
admin.site.register(Playlist, PlaylistAdmin)
admin.site.register(Link, LinkAdmin)