forked from 0x2620/pandora
add dbindex add missing import
This commit is contained in:
parent
b5a16574b3
commit
1f2b52fe29
3 changed files with 31 additions and 32 deletions
|
@ -587,43 +587,43 @@ class MovieSort(models.Model):
|
||||||
"""
|
"""
|
||||||
movie = models.OneToOneField('Movie', related_name='sort', primary_key=True)
|
movie = models.OneToOneField('Movie', related_name='sort', primary_key=True)
|
||||||
|
|
||||||
title = models.CharField(max_length=1000)
|
title = models.CharField(max_length=1000, db_index=True)
|
||||||
director = models.TextField(blank=True)
|
director = models.TextField(blank=True, db_index=True)
|
||||||
country = models.TextField(blank=True)
|
country = models.TextField(blank=True, db_index=True)
|
||||||
year = models.CharField(max_length=4)
|
year = models.CharField(max_length=4, db_index=True)
|
||||||
|
|
||||||
producer = models.TextField(blank=True)
|
producer = models.TextField(blank=True, db_index=True)
|
||||||
writer = models.TextField(blank=True)
|
writer = models.TextField(blank=True, db_index=True)
|
||||||
editor = models.TextField(blank=True)
|
editor = models.TextField(blank=True, db_index=True)
|
||||||
cinematographer = models.TextField(blank=True)
|
cinematographer = models.TextField(blank=True, db_index=True)
|
||||||
|
|
||||||
language = models.TextField(blank=True)
|
language = models.TextField(blank=True, db_index=True)
|
||||||
runtime = models.IntegerField(blank=True, null=True)
|
runtime = models.IntegerField(blank=True, null=True, db_index=True)
|
||||||
|
|
||||||
keywords = models.IntegerField(blank=True)
|
keywords = models.IntegerField(blank=True, db_index=True)
|
||||||
genre = models.TextField(blank=True)
|
genre = models.TextField(blank=True, db_index=True)
|
||||||
cast = models.IntegerField(blank=True)
|
cast = models.IntegerField(blank=True, db_index=True)
|
||||||
summary = models.IntegerField(blank=True)
|
summary = models.IntegerField(blank=True, db_index=True)
|
||||||
trivia = models.IntegerField(blank=True)
|
trivia = models.IntegerField(blank=True, db_index=True)
|
||||||
connections = models.IntegerField(blank=True)
|
connections = models.IntegerField(blank=True, db_index=True)
|
||||||
|
|
||||||
rating = models.FloatField(blank=True)
|
rating = models.FloatField(blank=True, db_index=True)
|
||||||
votes = models.IntegerField(blank=True)
|
votes = models.IntegerField(blank=True, db_index=True)
|
||||||
scenes = models.IntegerField(blank=True)
|
scenes = models.IntegerField(blank=True, db_index=True)
|
||||||
words = models.IntegerField(null=True, blank=True)
|
words = models.IntegerField(null=True, blank=True, db_index=True)
|
||||||
wpm = models.IntegerField('Words per Minute', null=True, blank=True)
|
wpm = models.IntegerField('Words per Minute', null=True, blank=True, db_index=True)
|
||||||
risk = models.IntegerField(null=True, blank=True)
|
risk = models.IntegerField(null=True, blank=True, db_index=True)
|
||||||
|
|
||||||
movieId = models.CharField('ID', max_length=128, blank=True)
|
movieId = models.CharField('ID', max_length=128, blank=True, db_index=True)
|
||||||
|
|
||||||
duration = models.FloatField(default=-1)
|
duration = models.FloatField(default=-1, db_index=True)
|
||||||
resolution = models.IntegerField(blank=True)
|
resolution = models.IntegerField(blank=True, db_index=True)
|
||||||
aspectratio = models.IntegerField('Aspect Ratio', blank=True)
|
aspectratio = models.IntegerField('Aspect Ratio', blank=True, db_index=True)
|
||||||
bitrate = models.IntegerField(blank=True)
|
bitrate = models.IntegerField(blank=True, db_index=True)
|
||||||
pixels = models.BigIntegerField(blank=True)
|
pixels = models.BigIntegerField(blank=True, db_index=True)
|
||||||
filename = models.IntegerField(blank=True)
|
filename = models.IntegerField(blank=True, db_index=True)
|
||||||
files = models.IntegerField(blank=True)
|
files = models.IntegerField(blank=True, db_index=True)
|
||||||
size = models.BigIntegerField(blank=True)
|
size = models.BigIntegerField(blank=True, db_index=True)
|
||||||
|
|
||||||
_private_fields = ('id', 'movie')
|
_private_fields = ('id', 'movie')
|
||||||
#return available sort fields
|
#return available sort fields
|
||||||
|
|
|
@ -5,7 +5,6 @@ import os.path
|
||||||
import re
|
import re
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from urllib2 import unquote
|
from urllib2 import unquote
|
||||||
import json
|
|
||||||
import mimetypes
|
import mimetypes
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
|
|
0
pandora/manage.py
Normal file → Executable file
0
pandora/manage.py
Normal file → Executable file
Loading…
Reference in a new issue