I want two content type like:
# in content_type_a.py
from content_type_b import IContentTypeB
class IContentTypeA(model.Schema):
content_type_bs = RelationList(
default=[],
value_type=RelationChoice(
source=ObjPathSourceBinder(
object_provides=IContentTypeB.__identifier__
),
),
required=False,
)
# in content_type_b.py
from content_type_a import IContentTypeA
class IContentTypeB(model.Schema):
content_type_as = RelationList(
default=[],
value_type=RelationChoice(
source=ObjPathSourceBinder(
object_provides=IContentTypeA.__identifier__
),
),
required=False,
)
But have error: ImportError: cannot import name IContentTypeA
any idea for me? Thank you so much!