[sqlalchemy] Re: Adding arbitrary attribute to a model instance during querying

2009-11-11 Thread hb
Thanks a lot for the reply, definitely my code is looking better now. Haldun. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To u

[sqlalchemy] Re: Adding arbitrary attribute to a model instance during querying

2009-11-10 Thread Michael Bayer
On Nov 10, 2009, at 4:24 PM, hb wrote: > > Hi all, > > I have two models: User and Project. The relationship is one-to-many. > What I want to achieve is querying users and the number of projects > they are connected to. I also want to order the users according to the > project counts. > > The