Thanks for the quick answer, but that's not quite what I need. With this
way I can't neither use .reversed() nor do somthing like
.select(orderBy=xxx) nor select todos, that belong to user A and user B. :(



Oleg Broytmann schrieb:
> On Tue, Nov 13, 2007 at 11:43:59PM +0100, Nicolas Riedel wrote:
>>         u = User.get(1)
>>         todos = Todo.select(Todo.q.users == u)
> 
>    You don't need the second line. User instances have all you want:
> 
> print u.todos
> 
> Oleg.


-- 
[EMAIL PROTECTED]
ICQ: 52364961
Jabber: [EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to