How do you add or access an additional field to the cross-reference
table generated by a ManyToManyField? For example, if I have an xref
table that looks like:

`id` mediumint(9) unsigned NOT NULL auto_increment,
`foo_id` int(11) NOT NULL default '0',
`bar_id` int(11) NOT NULL default '0',
`baz` varchar(255) NOT NULL

...how do I enable my Foo and/or Bar objects to have access to
variable baz?  The only apparant solution is adding a get_baz()
method to Foo or Bar that performs a SELECT query on the
myproject_foos_bars table to retrieve baz.  This is fine for
situations in which one only needs to read baz, but unacceptable for
more complex scenarios.

Note that reworking my schema to avoid this issue is not an option :)

Thanks,
John

Reply via email to