[UPDT]candidate update stage && [FIX] typo in notification (#8)

* [UPDT]candidate update stage

* [FIX]typo in notification - email sent

---------

Co-authored-by: NIKHIL RAVI <nikhil@cybrosys.com>
This commit is contained in:
Nikhil Ravi Cybrosys
2023-05-23 16:37:11 +05:30
committed by GitHub
parent a006226ad2
commit 09b2137792

4
recruitment/views.py Normal file → Executable file
View File

@@ -877,6 +877,8 @@ def candidate_update(request, id):
if candidate.stage_id is None:
candidate.stage_id = Stage.objects.filter(
recruitment_id=candidate.recruitment_id, stage_type="initial").first()
if candidate.stage_id.recruitment_id != candidate.recruitment_id:
candidate.stage_id = candidate.recruitment_id.stage_set.filter(stage_type="initial").first()
candidate.save()
messages.success(request, _('Candidate Updated Successfully.'))
return redirect('/recruitment/candidate-view')
@@ -1022,7 +1024,7 @@ def send_acknowledgement(request):
<div class="oh-alert-container">
<div class="oh-alert oh-alert--animated oh-alert--success">
Mail sended.
Mail send.
</div>
</div>
""")