videopdf/item/admin.py
2013-02-12 12:39:52 +05:30

14 lines
320 B
Python

# -*- 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)