--- a/app/soc/models/document.py Wed Oct 15 13:59:52 2008 +0000
+++ b/app/soc/models/document.py Wed Oct 15 14:06:33 2008 +0000
@@ -56,8 +56,11 @@
#: view them (which may be anyone, for example, with the site front page).
content = db.TextProperty(verbose_name=ugettext_lazy('Content'))
- #: User who created this document.
#: TODO(pawel.solyga): replace this with WorkAuthors relation
- user = db.ReferenceProperty(reference_class=soc.models.user.User,
- required=True, collection_name='documents')
+ #: Required many:1 relationship indicating the founding User of the
+ #: Document (this relationship is needed to keep track of lifetime document
+ #: creation limits, used to prevent spamming, etc.).
+ founder = db.ReferenceProperty(reference_class=soc.models.user.User,
+ required=True, collection_name="documents",
+ verbose_name=ugettext_lazy('Created by'))