Code

Ticket #6185: freecomments_newforms_fix.diff

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

Fix as suggested

Line 
1Index: django/contrib/comments/models.py
2===================================================================
3--- django/contrib/comments/models.py   (wersja 7001)
4+++ django/contrib/comments/models.py   (kopia robocza)
5@@ -159,7 +159,7 @@
6     object_id = models.IntegerField(_('object ID'))
7     comment = models.TextField(_('comment'), max_length=3000)
8     person_name = models.CharField(_("person's name"), max_length=50)
9-    submit_date = models.DateTimeField(_('date/time submitted'), auto_now_add=True)
10+    submit_date = models.DateTimeField(_('date/time submitted'), default=datetime.datetime.now)
11     is_public = models.BooleanField(_('is public'))
12     ip_address = models.IPAddressField(_('ip address'))
13     # TODO: Change this to is_removed, like Comment