##// END OF EJS Templates
Update thread bumpable status and posts only if it is yet bumpable
neko259 -
r1092:f09532f1 default
parent child Browse files
Show More
@@ -347,7 +347,8 b' class Post(models.Model, Viewable):'
347
347
348 if self.id:
348 if self.id:
349 for thread in self.get_threads().all():
349 for thread in self.get_threads().all():
350 thread.update_bump_status()
350 if thread.can_bump():
351 thread.update_bump_status()
351 thread.last_edit_time = self.last_edit_time
352 thread.last_edit_time = self.last_edit_time
352
353
353 thread.save(update_fields=['last_edit_time', 'bumpable'])
354 thread.save(update_fields=['last_edit_time', 'bumpable'])
General Comments 0
You need to be logged in to leave comments. Login now