Source

mediatr / admin.py

Full commit
from django.contrib import admin

from models import Stream, Item, Filter, Variant, Queue, Meta


class StreamAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}

class MetaAdmin(admin.ModelAdmin):
    list_display = ('__unicode__', 'item')

class ItemAdmin(admin.ModelAdmin):
    list_display = ('__unicode__', 'mime', 'upload_date')
    prepopulated_fields = {"slug": ("name",)}
    date_hierarchy = 'upload_date'
    filter_horizontal = ('stream',)
    #radio_fields = {'category': admin.VERTICAL}
    list_filter = ('upload_date', 'mime')
    search_fields = ['name']

admin.site.register(Item, ItemAdmin)
admin.site.register(Meta, MetaAdmin)
admin.site.register(Stream, StreamAdmin)