diff --git a/competition/models.py b/competition/models.py index 3f7a83b1..106e830c 100644 --- a/competition/models.py +++ b/competition/models.py @@ -281,7 +281,10 @@ def can_submit(self): @property def can_resubmit(self): - return self.get_actual_late_flag().can_resubmit + late_flag = self.get_actual_late_flag() + if late_flag: + return late_flag.can_resubmit + return False def get_actual_late_flag(self) -> Optional[LateTag]: """