funkwhale/api/funkwhale_api/favorites/admin.py

10 wiersze
243 B
Python

from funkwhale_api.common import admin
from . import models
@admin.register(models.TrackFavorite)
class TrackFavoriteAdmin(admin.ModelAdmin):
list_display = ["user", "track", "creation_date"]
list_select_related = ["user", "track"]