[sqlalchemy] Re: Set-based association proxy through AppenderQuery?

2012-07-17 Thread Jon Parise
I have a similar use case, and aside from introducing a duplicate non-lazy relationship to back the association_proxy, I haven't found a solution. Does anyone have a more elegant approach? On Saturday, February 11, 2012 12:15:38 PM UTC-8, Mark Friedenbach wrote: Hi, Is it possible to have

Re: [sqlalchemy] Re: Set-based association proxy through AppenderQuery?

2012-07-17 Thread Michael Bayer
association proxy documents the proxy_factory attribute for this purpose. see below. from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.associationproxy import association_proxy, _AssociationSet import operator