admin.py 243 Bytes
Newer Older
1
from funkwhale_api.common import admin
2 3 4 5 6 7

from . import models


@admin.register(models.TrackFavorite)
class TrackFavoriteAdmin(admin.ModelAdmin):
Agate's avatar
Agate committed
8 9
    list_display = ["user", "track", "creation_date"]
    list_select_related = ["user", "track"]