id in response

This commit is contained in:
j 2011-10-18 21:37:03 +02:00
parent 727ea66f35
commit 778639def8

View file

@ -73,7 +73,7 @@ class Imdb(models.Model):
def json(self): def json(self):
j = {} j = {}
j['imdbId'] = self.imdb j['id'] = self.imdb
for key in self.keys: for key in self.keys:
j[key] = getattr(self, key) j[key] = getattr(self, key)
for key in ('director', 'episodeDirector'): for key in ('director', 'episodeDirector'):