On May 16, 2013, at 8:59 PM, Gerald Thibault dieselmach...@gmail.com wrote:
user = User(id=1)
group = Group(id=1)
ugroup = UserGroup(user=user, group=group)
session = Session(e)
session.add(user)
session.add(group)
session.add(ugroup)
session.commit()
I have a User model, and a Group model, and a m2m relation between them.
I also have a proxy on the user that routes directly to the Group
instances. The creator function, however, only takes one param (group), so
when I pass in a group, I have no way to look it up to see if the (user_id,