@david, yes I see, I thought about doing it that way... it's lots simpler...
Is it still possible to get all the tags of all the posts? (you know, for getting tag autocompletion, or a 'cool' tagcloud :-) ) Thanks... On Feb 23, 12:54 pm, David Symonds <dsymo...@gmail.com> wrote: > On Mon, Feb 23, 2009 at 10:47 PM, Versluys Sander > > <versluyssan...@gmail.com> wrote: > > But i would like to know how other people do this... > > > class Post(db.Model): > > content = db.TextProperty() > > > class Tag(db.Model): > > name = db.StringProperty() > > I would just add a db.StringListProperty to the Post model that lists > all the tags. That way you can still search for all the posts with a > given tag (use the "IN" operator), and you can get a list of all the > tags independently. > > Dave. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---