From 219d964008d6a683459cd2999e43353092524f43 Mon Sep 17 00:00:00 2001 From: Ben Slavin Date: Sat, 30 Jul 2011 22:59:09 -0300 Subject: [PATCH] Changing `Action`.`timestamp` to use `default` rather than `auto_now_add`. The `action` signal handler allows a timestamp to be specified by the caller, but `auto_now_add` was preventing this from functioning. --- actstream/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actstream/models.py b/actstream/models.py index 39df2518..e40a3a86 100644 --- a/actstream/models.py +++ b/actstream/models.py @@ -138,7 +138,7 @@ class Action(models.Model): action_object_object_id = models.PositiveIntegerField(blank=True,null=True) action_object = generic.GenericForeignKey('action_object_content_type','action_object_object_id') - timestamp = models.DateTimeField(auto_now_add=True) + timestamp = models.DateTimeField(default=datetime.now) objects = ActionManager()