fixed infinite recursion with type attribute of product asset NEXT: write Asset.logs and Asset.get_logs_of_type(type)
This commit is contained in:
@@ -4,10 +4,10 @@ from requests_oauthlib import OAuth2Session, OAuth2
|
||||
import jsonapi_requests
|
||||
import importlib
|
||||
import neofarm.orm.my_meta
|
||||
import neofarm.orm.log
|
||||
import neofarm.orm.asset
|
||||
import neofarm.orm.quantity
|
||||
import neofarm.orm.taxonomy
|
||||
import neofarm.orm.log as Log
|
||||
import neofarm.orm.asset as Asset
|
||||
import neofarm.orm.quantity as Quantity
|
||||
import neofarm.orm.taxonomy as Taxonomy
|
||||
importlib.reload(neofarm.orm.my_meta)
|
||||
from . orm.my_meta import MyMeta
|
||||
|
||||
@@ -40,10 +40,6 @@ api = init_api()
|
||||
MyMeta.set_api(api)
|
||||
# these have to be defined after MyMeta.api is set for the correct value to be inherited
|
||||
importlib.reload(neofarm.orm.log)
|
||||
from . orm.log import *
|
||||
importlib.reload(neofarm.orm.asset)
|
||||
from . orm.asset import *
|
||||
importlib.reload(neofarm.orm.quantity)
|
||||
from . orm.quantity import *
|
||||
importlib.reload(neofarm.orm.taxonomy)
|
||||
from . orm.taxonomy import *
|
||||
importlib.reload(neofarm.orm.taxonomy)
|
||||
Reference in New Issue
Block a user