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-07-12 14:56:14 +00:00
|
|
|
#from forms import FileAdminForm, MovieAdminForm, ArchiveFileAdminForm
|
2009-12-31 15:04:32 +00:00
|
|
|
import models
|
|
|
|
|
|
|
|
|
2010-07-12 14:56:14 +00:00
|
|
|
|
|
|
|
'''
|
2009-12-31 15:04:32 +00:00
|
|
|
#class MovieImdbAdmin(admin.ModelAdmin):
|
|
|
|
# search_fields = ['imdbId', 'title']
|
|
|
|
#admin.site.register(models.MovieImdb, MovieImdbAdmin)
|
|
|
|
class MovieImdbInline(admin.StackedInline):
|
|
|
|
model = models.MovieImdb
|
|
|
|
|
|
|
|
class MovieOxdbInline(admin.StackedInline):
|
|
|
|
model = models.MovieOxdb
|
2010-07-12 14:56:14 +00:00
|
|
|
'''
|
2009-12-31 15:04:32 +00:00
|
|
|
|
|
|
|
class MovieAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['movieId', 'imdb__title', 'oxdb__title']
|
2010-07-12 14:56:14 +00:00
|
|
|
#form = MovieAdminForm
|
2009-12-31 15:04:32 +00:00
|
|
|
#inlines = [MovieImdbInline, MovieOxdbInline]
|
|
|
|
|
|
|
|
admin.site.register(models.Movie, MovieAdmin)
|
|
|
|
|
|
|
|
|