On Mon, Feb 23, 2009 at 10:47 PM, Versluys Sander
<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to