GHOP Comments do not need to be created by a User.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 03 Oct 2009 21:49:08 +0200
changeset 3003 6a84c1ff5b5c
parent 3002 2c5e9cd4ba4d
child 3004 8485ae85de54
GHOP Comments do not need to be created by a User. We also have "system" messages.
app/soc/modules/ghop/models/comment.py
--- a/app/soc/modules/ghop/models/comment.py	Sat Oct 03 22:17:58 2009 +0530
+++ b/app/soc/modules/ghop/models/comment.py	Sat Oct 03 21:49:08 2009 +0200
@@ -54,7 +54,7 @@
   #: A required many:1 relationship with a comment entity indicating
   #: the user who provided that comment.
   created_by = db.ReferenceProperty(reference_class=soc.models.user.User,
-                                    required=True,
+                                    required=False,
                                     collection_name="commented_by")
 
   #: Date when the comment was added