avoid circular import
This commit is contained in:
parent
c9b9aa935f
commit
a89d3e9359
1 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue