##// END OF EJS Templates
Updating last update time of the thread when archiving it
neko259 -
r492:62014008 1.6-dev
parent child Browse files
Show More
@@ -163,6 +163,7 b' class PostManager(models.Manager):'
163
163
164 for thread in old_threads:
164 for thread in old_threads:
165 thread.archived = True
165 thread.archived = True
166 thread.last_edit_time = timezone.now()
166 thread.save()
167 thread.save()
167
168
168 def connect_replies(self, post):
169 def connect_replies(self, post):
@@ -62,7 +62,7 b''
62 <span class="title">{{ thread.op.title }}</span>
62 <span class="title">{{ thread.op.title }}</span>
63 <a class="post_id" href="{% url 'thread' thread.op.id %}"
63 <a class="post_id" href="{% url 'thread' thread.op.id %}"
64 > ({{ thread.op.id }})</a>
64 > ({{ thread.op.id }})</a>
65 [{{ thread.op.pub_time }}] — [{{ thread.thread.bump_time }}]
65 [{{ thread.op.pub_time }}] — [{{ thread.thread.last_edit_time }}]
66
66
67 [<a class="link" href="
67 [<a class="link" href="
68 {% url 'thread' thread.op.id %}">{% trans "Open" %}</a>]
68 {% url 'thread' thread.op.id %}">{% trans "Open" %}</a>]
General Comments 0
You need to be logged in to leave comments. Login now