def pre(self): self.A.B=P.ForeignKey('b_id', 'id', self.B) b1=self.B.new(x=44) b2=self.B.new(x=88) self.A.new(name='aardvark', b_id=b1.id, x=1, y=2, z=3)
def pre(self): global A_C A_C=self.A_C self.F.A_C=P.ForeignKey(('a_id', 'c_id'), ('a_id', 'c_id'), 'test_base.A_C') self.A_C.new(a_id=1, c_id=1) self.f=self.F.new(a_id=1, c_id=1)
def pre(self): self.F.A_C=P.ForeignKey(('a_id', 'c_id'), ('a_id', 'c_id'), self.A_C) self.A_C.new(a_id=1, c_id=1) self.f=self.F.new(a_id=1, c_id=1)