videopdf/item/admin.py

15 lines
320 B
Python
Raw Normal View History

2013-02-12 07:09:52 +00:00
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
# Written 2010 by j@mailb.org
from django.contrib import admin
import models
class ItemAdmin(admin.ModelAdmin):
search_fields = ['filename', 'slug']
list_display = ('slug', 'filename', 'created', 'size', 'done')
admin.site.register(models.Item, ItemAdmin)