- Full PWA support with offline capabilities - Comprehensive search across songs, playlists, and channels - Offline playlist manager with download tracking - Pre-built frontend for zero-build deployment - Docker-based deployment with docker compose - Material-UI dark theme interface - YouTube audio download and management - Multi-user authentication support
19 lines
586 B
Python
19 lines
586 B
Python
"""Playlist admin"""
|
|
|
|
from django.contrib import admin
|
|
from playlist.models import Playlist, PlaylistItem
|
|
|
|
|
|
@admin.register(Playlist)
|
|
class PlaylistAdmin(admin.ModelAdmin):
|
|
"""Playlist admin"""
|
|
list_display = ('title', 'playlist_type', 'subscribed', 'created_date')
|
|
list_filter = ('playlist_type', 'subscribed')
|
|
search_fields = ('title', 'playlist_id')
|
|
|
|
|
|
@admin.register(PlaylistItem)
|
|
class PlaylistItemAdmin(admin.ModelAdmin):
|
|
"""Playlist item admin"""
|
|
list_display = ('playlist', 'audio', 'position', 'added_date')
|
|
list_filter = ('playlist', 'added_date')
|