diff --git a/oxdata/lookup/models.py b/oxdata/lookup/models.py index 3c8fad0..1420a3d 100644 --- a/oxdata/lookup/models.py +++ b/oxdata/lookup/models.py @@ -16,8 +16,6 @@ import ox.web.imdb import ox.web.wikipedia import ox.web.allmovie -import movie.models - from modules import get_info oxdb_api = ox.API('http://0xdb.org/api/') @@ -108,7 +106,8 @@ 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.imdb_id) + from movie.models import Imdb + m, created = Imdb.objects.get_or_create(imdb=self.imdb_id) m.update() def gen_oxdb_id(self):