Fix forum topic creation

This commit is contained in:
klmp200 authored and Bartuccio Antoine committed 2024-07-11 13:23:24 +02:00
1 parent c9e398b7ec
commit a8918ebe86
2 files changed
+26 -1

No files matched your search

+2
View File
@@ -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"