kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
18 wiersze
484 B
Python
18 wiersze
484 B
Python
from funkwhale_api.common import admin
|
|
|
|
from . import models
|
|
|
|
|
|
@admin.register(models.Playlist)
|
|
class PlaylistAdmin(admin.ModelAdmin):
|
|
list_display = ["name", "user", "privacy_level", "creation_date"]
|
|
search_fields = ["name"]
|
|
list_select_related = True
|
|
|
|
|
|
@admin.register(models.PlaylistTrack)
|
|
class PlaylistTrackAdmin(admin.ModelAdmin):
|
|
list_display = ["playlist", "track", "index"]
|
|
search_fields = ["track__name", "playlist__name"]
|
|
list_select_related = True
|