[charts] Use raw ID fields in the admin
All checks were successful
build & deploy / test (push) Successful in 1m47s
build & deploy / deploy (push) Successful in 21s

This commit is contained in:
2026-03-25 13:02:05 -04:00
parent 3db0330cfe
commit 2ab6fc6cba

View File

@ -36,6 +36,21 @@ class ChartRecordAdmin(admin.ModelAdmin):
"food__name",
"trail__name",
)
raw_id_fields = (
"user",
"artist",
"album",
"track",
"tv_series",
"video",
"podcast",
"podcast_episode",
"board_game",
"trail",
"geo_location",
"food",
"book",
)
def media_name(self, obj):
return obj.media_obj