diff --git a/recruitment/admin.py b/recruitment/admin.py index 50d48a04c..ce01e8b84 100644 --- a/recruitment/admin.py +++ b/recruitment/admin.py @@ -6,6 +6,7 @@ This page is used to register the model with admins site. from django.contrib import admin from recruitment.models import ( CandidateRating, + SkillZone, Stage, Recruitment, Candidate, @@ -25,3 +26,4 @@ admin.site.register(RecruitmentSurveyAnswer) admin.site.register(RecruitmentSurvey) admin.site.register(RecruitmentMailTemplate) admin.site.register(CandidateRating) +admin.site.register(SkillZone) diff --git a/recruitment/filters.py b/recruitment/filters.py index af523c0bc..3a761d505 100644 --- a/recruitment/filters.py +++ b/recruitment/filters.py @@ -479,6 +479,7 @@ class SkillZoneCandFilter(FilterSet): model = SkillZoneCandidate fields = [ + "is_active", "candidate_id", "candidate_id__recruitment_id", "candidate_id__stage_id", diff --git a/recruitment/forms.py b/recruitment/forms.py index fa208a056..3ee34c32a 100644 --- a/recruitment/forms.py +++ b/recruitment/forms.py @@ -825,6 +825,7 @@ class SkillZoneCreateForm(ModelForm): "created_on", "objects", "company_id", + "is_active", ] def as_p(self, *args, **kwargs): @@ -853,6 +854,7 @@ class SkillZoneCandidateForm(ModelForm): fields = "__all__" exclude = [ "added_on", + "is_active", ] def as_p(self, *args, **kwargs): diff --git a/recruitment/templates/dashboard/dashboard.html b/recruitment/templates/dashboard/dashboard.html index 5cfcefc50..5ce493bb3 100644 --- a/recruitment/templates/dashboard/dashboard.html +++ b/recruitment/templates/dashboard/dashboard.html @@ -152,7 +152,7 @@ -
+
+