" " ( ). , , Groups (GroupTags), , , Topics (TopicTags).
Tag Tag , , Group Topic, Tag.
, , AppEngine , , . Topics, , Topic , Group Group. Group tags GroupsTags, Tag. Tag Groups Topics, , , ( ) .
, .
class Group(db.Model):
class Topic(db.Model):
title = db.StringProperty(required=True)
group = db.ReferenceProperty(Group, collection='topics')
class Tag(db.Model):
text = db.StringProperty(required=True)
class GroupTags(db.Model):
group = db.ReferenceProperty(Group, collection='tags')
tag = db.ReferenceProperty(Tag, collection='groups')
class TopicTags(db.Model):
topic = db.ReferenceProperty(Topic, collection='tags')
tag = db.ReferenceProperty(Tag, collection='topics')