diff --git a/recruitment/forms.py b/recruitment/forms.py index 770ceb56f..8573a8881 100644 --- a/recruitment/forms.py +++ b/recruitment/forms.py @@ -682,10 +682,13 @@ exclude_fields = ["id", "profile", "portfolio", "resume", "sequence"] class CandidateExportForm(forms.Form): model_fields = Candidate._meta.get_fields() field_choices = [ - (field.name, field.verbose_name) + (field.name, field.verbose_name.capitalize()) for field in model_fields if hasattr(field, "verbose_name") and field.name not in exclude_fields ] + field_choices = field_choices + [ + ("rejected_candidate__description", "Rejected Description"), + ] selected_fields = forms.MultipleChoiceField( choices=field_choices, widget=forms.CheckboxSelectMultiple, @@ -870,4 +873,5 @@ class RejectedCandidateForm(ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields["reject_reason_id"].empty_label = None \ No newline at end of file + self.fields["reject_reason_id"].empty_label = None + self.fields["candidate_id"].widget = self.fields["candidate_id"].hidden_widget() diff --git a/recruitment/templates/candidate/export_filter.html b/recruitment/templates/candidate/export_filter.html index fa6ad50ce..df705c365 100644 --- a/recruitment/templates/candidate/export_filter.html +++ b/recruitment/templates/candidate/export_filter.html @@ -45,6 +45,12 @@ {{export_obj.form.hired}} +