mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Small fix with forum topic titles
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
@ -246,7 +246,7 @@ class ForumMessage(models.Model):
|
||||
super(ForumMessage, self).save(*args, **kwargs)
|
||||
if self.is_last_in_topic():
|
||||
self.topic._last_message_id = self.id
|
||||
if self.is_first_in_topic():
|
||||
if self.is_first_in_topic() and self.title:
|
||||
self.topic._title = self.title
|
||||
self.topic._message_number = self.topic.messages.count()
|
||||
self.topic.save()
|
||||
|
Reference in New Issue
Block a user