We are at an unprecedented point in American history, and I'm concerned we
may lose sight of the American Dream.
Saturday, September 22, 2012
Many-to-Many Relationships
In the video below I show one way to setup a many-to-many relationship in the datastore: between Posts and Tags.
Labels:
lecture
Subscribe to:
Post Comments (Atom)
For the reallyDelete(self) method at the end of the video, I believe after "post.tags.remove(self.name)" you need to also add the line "post.put()" to save the changes to the datastore.
ReplyDeleteYes, you are correct. Nothing changes on the datastore until you do the .pu(), which is an Atomic action. Thanks!
ReplyDelete