[UPDT] RECRUITMENT : Updated all models with the company for multicompany

This commit is contained in:
Horilla
2024-11-15 11:01:05 +05:30
parent f1d5703e04
commit bff8208b68

View File

@@ -86,6 +86,7 @@ class SurveyTemplate(HorillaModel):
blank=True,
verbose_name=_("Company"),
)
objects = HorillaCompanyManager("company_id")
def __str__(self) -> str:
return self.title
@@ -935,6 +936,7 @@ class InterviewSchedule(HorillaModel):
completed = models.BooleanField(
default=False, verbose_name=_("Is Interview Completed")
)
objects = HorillaCompanyManager("candidate_id__recruitment_id__company_id")
def __str__(self) -> str:
return f"{self.candidate_id} -Interview."