class A(BaseModel):
one = CharField()
two = CharField()
class Meta:
primary_key = CompositeKey('one', 'two')
class B(BaseMoedel):
a = ForeignKeyField(A, related_name='A')
db.create_tables([A,B])
这是行不通的,谷歌了,没找到好的解决方案,实在苦恼。
可有老司机指路~
1
liangmishi OP 感觉要沉
|