make find api more jsonic

This commit is contained in:
j 2010-02-22 14:55:29 +05:30
commit ffa955eef0
5 changed files with 206 additions and 53 deletions

View file

@ -442,7 +442,9 @@ class Movie(models.Model):
except MovieFind.DoesNotExist:
f = MovieFind(movie=self)
f.title = self.get('title') + ' '.join([t.title for t in self.alternative_titles()])
f.title = self.get('title')
#FIXME: filter us/int title
#f.title += ' '.join([t.title for t in self.alternative_titles()])
f.director = ' '.join([i.name for i in self.directors()])
f.country = ' '.join([i.name for i in self.countries()])
f.year = self.get('year', '')