app/soc/modules/ghop/models/comment.py
changeset 3003 6a84c1ff5b5c
parent 2822 387a3b80df05
equal deleted inserted replaced
3002:2c5e9cd4ba4d 3003:6a84c1ff5b5c
    52                              verbose_name=ugettext('Status of this Comment'))
    52                              verbose_name=ugettext('Status of this Comment'))
    53 
    53 
    54   #: A required many:1 relationship with a comment entity indicating
    54   #: A required many:1 relationship with a comment entity indicating
    55   #: the user who provided that comment.
    55   #: the user who provided that comment.
    56   created_by = db.ReferenceProperty(reference_class=soc.models.user.User,
    56   created_by = db.ReferenceProperty(reference_class=soc.models.user.User,
    57                                     required=True,
    57                                     required=False,
    58                                     collection_name="commented_by")
    58                                     collection_name="commented_by")
    59 
    59 
    60   #: Date when the comment was added
    60   #: Date when the comment was added
    61   created_on = db.DateTimeProperty(auto_now_add=True)
    61   created_on = db.DateTimeProperty(auto_now_add=True)
    62 
    62