3 from django
.contrib
import admin
5 from mygpo
.suggestions
.models
import PodcastSuggestion
8 @admin.register(PodcastSuggestion
)
9 class PodcastSuggestionAdmin(admin
.ModelAdmin
):
10 """ Admin page for suggestions """
12 # configuration for the list view
13 list_display
= ('suggested_to', 'podcast', 'deleted', )
15 # fetch the related objects for the fields in list_display
16 list_select_related
= ('suggested_to', 'podcast', )
18 raw_id_fields
= ('suggested_to', 'podcast', )