1 from __future__
import unicode_literals
3 from django
.contrib
import admin
5 from mygpo
.subscriptions
.models
import Subscription
, PodcastConfig
8 @admin.register(Subscription
)
9 class SubscriptionAdmin(admin
.ModelAdmin
):
10 """ Admin page for subscriptions """
12 # configuration for the list view
13 list_display
= ('user', 'podcast', 'client', )
15 # fetch the related objects for the fields in list_display
16 list_select_related
= ('user', 'podcast', 'client', )
18 raw_id_fields
= ('user', 'podcast', 'client', )
21 @admin.register(PodcastConfig
)
22 class PodcastConfigAdmin(admin
.ModelAdmin
):
24 # configuration for the list view
25 list_display
= ('user', 'podcast', )
27 # fetch the related objects for the fields in list_display
28 list_select_related
= ('user', 'podcast', )
30 raw_id_fields
= ('user', 'podcast', )