# HG changeset patch # User neko259 # Date 2014-01-07 20:00:41 # Node ID 6201400808df8be3ee4a15feaf0872489609a592 # Parent 3cc935feff730bcc2a673a07d4c8a3cbcc499770 Updating last update time of the thread when archiving it diff --git a/boards/models/post.py b/boards/models/post.py --- a/boards/models/post.py +++ b/boards/models/post.py @@ -163,6 +163,7 @@ class PostManager(models.Manager): for thread in old_threads: thread.archived = True + thread.last_edit_time = timezone.now() thread.save() def connect_replies(self, post): diff --git a/boards/templates/boards/archive.html b/boards/templates/boards/archive.html --- a/boards/templates/boards/archive.html +++ b/boards/templates/boards/archive.html @@ -62,7 +62,7 @@ {{ thread.op.title }} ({{ thread.op.id }}) - [{{ thread.op.pub_time }}] — [{{ thread.thread.bump_time }}] + [{{ thread.op.pub_time }}] — [{{ thread.thread.last_edit_time }}] [{% trans "Open" %}]