From 189a054dbe23177c2b4f17fe49a5ce50149f6571 Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Date: Fri, 1 Nov 2024 22:46:35 -0400 Subject: [PATCH] Update models.py --- breathecode/assessment/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breathecode/assessment/models.py b/breathecode/assessment/models.py index 0aa3e7d3a..3bf4b332f 100644 --- a/breathecode/assessment/models.py +++ b/breathecode/assessment/models.py @@ -302,7 +302,7 @@ def save(self, *args, **kwargs): _instance = super().save(*args, **kwargs) # Answer is being closed - if is_creating or self.status != old_status: + if is_creating or self.status != self.old_status: signals.userassessment_status_updated.send_robust(instance=self, sender=self.__class__) return _instance