diff --git a/oxdata/lookup/models.py b/oxdata/lookup/models.py index 4ce8a2a..3c8fad0 100644 --- a/oxdata/lookup/models.py +++ b/oxdata/lookup/models.py @@ -108,7 +108,7 @@ class MovieId(models.Model): # self.gen_oxdb_id() self.save() if self.imdb_id: - m, created = movie.models.Imdb.objects.get_or_create(imdb=self.movie_id.imdb_id) + m, created = movie.models.Imdb.objects.get_or_create(imdb=self.imdb_id) m.update() def gen_oxdb_id(self):