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):
j = {}
j['imdbId'] = self.imdb
j['id'] = self.imdb
for key in self.keys:
j[key] = getattr(self, key)
for key in ('director', 'episodeDirector'):