2010-07-12 14:56:14 +00:00
|
|
|
# -*- 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
|
2010-07-12 14:56:14 +00:00
|
|
|
import models
|
|
|
|
|
|
|
|
class FileAdmin(admin.ModelAdmin):
|
2010-12-08 00:30:45 +00:00
|
|
|
search_fields = ['name', 'video_codec']
|
2010-07-12 14:56:14 +00:00
|
|
|
|
|
|
|
#form = FileAdminForm
|
|
|
|
|
|
|
|
admin.site.register(models.File, FileAdmin)
|
|
|
|
|
2010-11-08 17:43:59 +00:00
|
|
|
class InstanceAdmin(admin.ModelAdmin):
|
2010-12-08 01:31:18 +00:00
|
|
|
search_fields = ['name', 'folder', 'volume__name']
|
2010-07-12 14:56:14 +00:00
|
|
|
#form = ArchiveFileAdminForm
|
|
|
|
|
2010-11-08 17:43:59 +00:00
|
|
|
admin.site.register(models.Instance, InstanceAdmin)
|
2010-07-12 14:56:14 +00:00
|
|
|
|