mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:39:16 +02:00
Initial commit that merge both the front end and the API in the same repository
This commit is contained in:
commit
76f98b74dd
285 changed files with 51318 additions and 0 deletions
17
api/funkwhale_api/playlists/admin.py
Normal file
17
api/funkwhale_api/playlists/admin.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from . import models
|
||||
|
||||
|
||||
@admin.register(models.Playlist)
|
||||
class PlaylistAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'user', 'is_public', 'creation_date']
|
||||
search_fields = ['name', ]
|
||||
list_select_related = True
|
||||
|
||||
|
||||
@admin.register(models.PlaylistTrack)
|
||||
class PlaylistTrackAdmin(admin.ModelAdmin):
|
||||
list_display = ['playlist', 'track', 'position', ]
|
||||
search_fields = ['track__name', 'playlist__name']
|
||||
list_select_related = True
|
Loading…
Add table
Add a link
Reference in a new issue