fix info lookup

This commit is contained in:
j 2012-09-27 16:04:48 +02:00
parent e9b0e837f1
commit 348b77aa85

View file

@ -163,9 +163,9 @@ class Imdb(models.Model):
data['posters'] = self.posters(request) data['posters'] = self.posters(request)
return data return data
def likes(self): def info(self, key):
movie_id = get_movie_id(imdb_id=self.imdb) movie_id = get_movie_id(imdb_id=self.imdb)
return movie_id and movie_id.likes() or 0 return movie_id and movie_id.info(key) or 0
def links(self): def links(self):
links = [] links = []