From a89d3e93592e106a4953c89adf096e03a3900039 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 25 Jul 2013 10:58:16 +0200 Subject: [PATCH] avoid circular import --- oxdata/lookup/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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):