1 from django
.contrib
import admin
3 from mygpo
.favorites
.models
import FavoriteEpisode
6 @admin.register(FavoriteEpisode
)
7 class FavoriteEpisodeAdmin(admin
.ModelAdmin
):
8 """Admin page for favorite episodes"""
10 # configuration for the list view
11 list_display
= ("user", "episode")
13 # fetch the related objects for the fields in list_display
14 list_select_related
= ("user", "episode")
16 raw_id_fields
= ("user", "episode")
18 show_full_result_count
= False