Show More
@@ -1,5 +1,5 b'' | |||||
1 | [Version] |
|
1 | [Version] | |
2 |
Version = 2.8. |
|
2 | Version = 2.8.2 Charlie | |
3 | SiteName = Neboard |
|
3 | SiteName = Neboard | |
4 |
|
4 | |||
5 | [Cache] |
|
5 | [Cache] |
@@ -212,7 +212,7 b' class Thread(models.Model):' | |||||
212 |
|
212 | |||
213 | def update_posts_time(self, exclude_posts=None): |
|
213 | def update_posts_time(self, exclude_posts=None): | |
214 | for post in self.post_set.all(): |
|
214 | for post in self.post_set.all(): | |
215 |
if exclude_posts is |
|
215 | if exclude_posts is None or post not in exclude_posts: | |
216 | # Manual update is required because uids are generated on save |
|
216 | # Manual update is required because uids are generated on save | |
217 | post.last_edit_time = self.last_edit_time |
|
217 | post.last_edit_time = self.last_edit_time | |
218 | post.save(update_fields=['last_edit_time']) |
|
218 | post.save(update_fields=['last_edit_time']) |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now