[Tasks] fix celery startup
[mygpo.git] / mygpo / subscriptions / admin.py
blob0364b4abf6144d9188c1983b6615ccdd64d5b964
3 from django.contrib import admin
5 from mygpo.subscriptions.models import Subscription
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', )