cablegates/pandora/api/admin.py

30 lines
676 B
Python
Raw Normal View History

2009-12-31 15:04:32 +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
2009-12-31 15:04:32 +00:00
import models
'''
2010-09-23 16:01:48 +00:00
#class ItemImdbAdmin(admin.ModelAdmin):
2009-12-31 15:04:32 +00:00
# search_fields = ['imdbId', 'title']
2010-09-23 16:01:48 +00:00
#admin.site.register(models.ItemImdb, ItemImdbAdmin)
class ItemImdbInline(admin.StackedInline):
model = models.ItemImdb
2009-12-31 15:04:32 +00:00
2010-09-23 16:01:48 +00:00
class ItemOxdbInline(admin.StackedInline):
model = models.ItemOxdb
'''
2009-12-31 15:04:32 +00:00
2010-09-23 16:01:48 +00:00
class ItemAdmin(admin.ModelAdmin):
search_fields = ['itemId', 'imdb__title', 'oxdb__title']
#form = ItemAdminForm
#inlines = [ItemImdbInline, ItemOxdbInline]
2009-12-31 15:04:32 +00:00
2010-09-23 16:01:48 +00:00
admin.site.register(models.Item, ItemAdmin)
2009-12-31 15:04:32 +00:00