class List:
pass

class Item:
pass

list = List()
item1 = Item()
item2 = Item()

list.items.append(item1)
list.items.append(item2)
list.items.append(item1)

session.add(list)
session.commit()

after it i have only one item1 in list.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to