Apply review suggestions

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

No files matched your search

+1 -1
View File
@@ -390,7 +390,7 @@ class ForumMessage(models.Model):
)
def is_deleted(self):
if self.id is None:
if self._state.adding:
return False
meta = self.metas.exclude(action="EDIT").order_by("-date").first()
if meta: