[UPDT] RECRUITMENT: Updated RejectedCandidate model class def __str__(self) function

This commit is contained in:
Horilla
2025-09-09 10:26:43 +05:30
parent a532f57c7e
commit 402bc547c6

View File

@@ -708,7 +708,8 @@ class RejectedCandidate(HorillaModel):
verbose_name_plural = _("Rejected Candidates") verbose_name_plural = _("Rejected Candidates")
def __str__(self) -> str: def __str__(self) -> str:
return self.candidate_id reasons = ", ".join(self.reject_reason_id.values_list("title", flat=True))
return f"{self.candidate_id} - {reasons if reasons else 'No Reason'}"
class StageFiles(HorillaModel): class StageFiles(HorillaModel):