some admin stuff

This commit is contained in:
j 2009-07-13 16:44:09 +02:00
commit 840c2f6b72
6 changed files with 28 additions and 4 deletions

10
poster/admin.py Normal file
View file

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import models
from django.contrib import admin
class PosterAdmin(admin.ModelAdmin):
search_fields = ['url', 'movie_id__title', 'movie_id__imdb_id']
admin.site.register(models.Poster, PosterAdmin)

View file

@ -14,3 +14,4 @@ class Poster(models.Model):
movie_id = models.ForeignKey(MovieId, related_name='poster')
url = models.CharField(max_length=255)

View file

@ -10,4 +10,5 @@ from oxdata.utils.shortcuts import render_to_json_response
def poster(request):
#FIXME: get MovieId from provided id and redirect to poster url
return