mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Fix forum topic creation
This commit is contained in:
@ -390,6 +390,8 @@ class ForumMessage(models.Model):
|
||||
)
|
||||
|
||||
def is_deleted(self):
|
||||
if self.id is None:
|
||||
return False
|
||||
meta = self.metas.exclude(action="EDIT").order_by("-date").first()
|
||||
if meta:
|
||||
return meta.action == "DELETE"
|
||||
|
Reference in New Issue
Block a user