Ticket #6185: freecomments_newforms_fix.diff

File freecomments_newforms_fix.diff, 767 bytes (added by aleander@…, 17 years ago)

Fix as suggested

  • django/contrib/comments/models.py

     
    159159    object_id = models.IntegerField(_('object ID'))
    160160    comment = models.TextField(_('comment'), max_length=3000)
    161161    person_name = models.CharField(_("person's name"), max_length=50)
    162     submit_date = models.DateTimeField(_('date/time submitted'), auto_now_add=True)
     162    submit_date = models.DateTimeField(_('date/time submitted'), default=datetime.datetime.now)
    163163    is_public = models.BooleanField(_('is public'))
    164164    ip_address = models.IPAddressField(_('ip address'))
    165165    # TODO: Change this to is_removed, like Comment
Back to Top