keep originalTitle too

This commit is contained in:
j 2013-02-27 13:16:47 +05:30
parent f82aefc6f0
commit ed22ecbfb7

View file

@ -62,6 +62,7 @@ class Imdb(models.Model):
imdb = models.CharField(max_length=7, unique=True) imdb = models.CharField(max_length=7, unique=True)
title = models.CharField(max_length=1000, blank=True, default='') title = models.CharField(max_length=1000, blank=True, default='')
originalTitle = models.CharField(max_length=1000, blank=True, default='')
year = models.CharField(max_length=4, blank=True, default='') year = models.CharField(max_length=4, blank=True, default='')
director = models.CharField(max_length=9000, blank=True, default='') director = models.CharField(max_length=9000, blank=True, default='')
@ -79,6 +80,7 @@ class Imdb(models.Model):
return u"[%s] %s%s" % (self.imdb, self.title, self.year and ' (%s)' % self.year or '') return u"[%s] %s%s" % (self.imdb, self.title, self.year and ' (%s)' % self.year or '')
keys = ('title', 'director', 'year', 'season', 'episode', keys = ('title', 'director', 'year', 'season', 'episode',
'originalTitle',
'seriesTitle', 'episodeTitle', 'episodeYear', 'episodeDirector') 'seriesTitle', 'episodeTitle', 'episodeYear', 'episodeDirector')
def apply_patch(self, data): def apply_patch(self, data):