我想在“yCla”类中的“y”字段中输入值,具体取决于“xCla”类中“x”字段中的值
class xCla(models.Model):
. . .
x = fields.Char()
class yCla(models.Model):
#I did not inherit anything
#this two models are from same module
y = fields.Char()
如果我不够清楚,请告诉我
呼啦一阵风
森林海
相关分类