bgneal@285: """ bgneal@285: Admin site definitions for the oembed application. bgneal@285: """ bgneal@285: from django.contrib import admin bgneal@285: bgneal@285: from oembed.models import Provider bgneal@285: from oembed.models import Oembed bgneal@285: bgneal@285: bgneal@285: class ProviderAdmin(admin.ModelAdmin): bgneal@285: list_display = ('name', 'api_endpoint', 'format') bgneal@285: list_filter = ('format', ) bgneal@285: search_fields = ('name', ) bgneal@285: bgneal@285: bgneal@285: class OembedAdmin(admin.ModelAdmin): bgneal@285: date_hierarchy = 'date_added' bgneal@285: list_display = ('__unicode__', 'type', 'url', 'date_added') bgneal@285: list_filter = ('type', ) bgneal@285: search_fields = ('title', ) bgneal@285: bgneal@285: bgneal@285: admin.site.register(Provider, ProviderAdmin) bgneal@285: admin.site.register(Oembed, OembedAdmin)