1 from django
.contrib
import admin
3 from mygpo
.directory
.models
import ExamplePodcast
6 @admin.register(ExamplePodcast
)
7 class ExamplePodcastAdmin(admin
.ModelAdmin
):
8 """Admin page for example podcasts"""
10 # configuration for the list view
11 list_display
= ("podcast",)
13 # fetch the related objects for the fields in list_display
14 list_select_related
= ("podcast",)
16 raw_id_fields
= ("podcast",)