> The problem is that when the record is created for the table
> article_tag the created field is not set to the default. Is there
> something obvious I am missing or is what am am doing not possible ?
Not in that way, no. A bit unfortunately, SO has no concept of declaration for
intermediate tables - they are a bit the orpahns of SO.
What you can of course do is to
- declare the intermediate table with two ForeignKey-columns
- create the accessors for both sides on the related tables yourself, like
this:
class Foo(..):
@property
def bars(self):
return list(Bar.select(AND(IntermediatTable.q.foo == self,
IntermediatTable.q.bar_id == Bar.q.id)))
And of course add/remove-methods. Not really that much work, and you end up
with an intermediate table with arbitrary attributes.
Diez
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss