Hello,
Paul Johnston a écrit :
Hi,
I'm trying to create a relation like this
Testing [1] - [many] Target (where target.is_testtgt==0)
i.e. I want to map only to Target rows that match the where condition.
Now, this is easy enough using assign_mapper:
assign_mapper(ctx, Testing,
Hi,
Have you tried :
Testing.mapper.add_property('target', relation(Target, primary))
(of course after having defined the Testing and Target classes...)
Works a treat!
Thank-you, it's great to have this working :-)
Paul
--~--~-~--~~~---~--~~
You