def summary(self):\r
return strip_tags(self.html)[:300]\r
\r
- def update_last_activity(self, user):\r
+ def update_last_activity(self, user, save=False):\r
self.last_activity_by = user\r
self.last_activity_at = datetime.datetime.now()\r
\r
if self.parent:\r
- self.parent.update_last_activity(user)\r
+ self.parent.update_last_activity(user, save=True)\r
+\r
+ if save:\r
+ self.save()\r
\r
def _create_revision(self, user, number, **kwargs):\r
revision = NodeRevision(author=user, revision=number, node=self, **kwargs)\r