On Apr 6, 2007, at 5:49 PM, Mike Kent wrote: > Hmm. If this makes the relationship between a ThingOne and a ThingTwo > work like a normal many-to-many relationship, I would have expected > you to be able to something like: > > spam = ThingOne(name='spam') > foo = ThingTwo(name='foo') > bar = ThingTwo(name='bar') > spam.twos.append(foo) > spam.twos.append(bar) > > and it would automatically maintain the 'Cat' table without having to > explicitly access it.
That also works. But you can't set the 'sorter' field that way, and I wanted the test to ensure the sorting happens (sorting the related objects is essential to my project). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
