cablegates/pandora/archive/admin.py

22 lines
494 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.contrib import admin
2010-09-23 16:01:48 +00:00
#from forms import FileAdminForm, ItemAdminForm, ArchiveFileAdminForm
import models
class FileAdmin(admin.ModelAdmin):
search_fields = ['path', 'video_codec']
#form = FileAdminForm
admin.site.register(models.File, FileAdmin)
2010-11-08 17:43:59 +00:00
class InstanceAdmin(admin.ModelAdmin):
2010-08-10 22:01:41 +00:00
search_fields = ['path', 'volume__name']
#form = ArchiveFileAdminForm
2010-11-08 17:43:59 +00:00
admin.site.register(models.Instance, InstanceAdmin)