Apply review suggestions

This commit is contained in:
2024-07-10 10:17:08 +02:00
committed by Bartuccio Antoine
parent a8918ebe86
commit 6240eff160
2 changed files with 10 additions and 3 deletions

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: