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.

2 comments:

  1. 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.

    ReplyDelete
  2. Yes, you are correct. Nothing changes on the datastore until you do the .pu(), which is an Atomic action. Thanks!

    ReplyDelete