some admin stuff
This commit is contained in:
parent
b02d3ec556
commit
840c2f6b72
6 changed files with 28 additions and 4 deletions
10
poster/admin.py
Normal file
10
poster/admin.py
Normal 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)
|
||||
|
||||
|
|
@ -14,3 +14,4 @@ class Poster(models.Model):
|
|||
movie_id = models.ForeignKey(MovieId, related_name='poster')
|
||||
url = models.CharField(max_length=255)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue