[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:
committed by
GitHub
parent
a006226ad2
commit
09b2137792
4
recruitment/views.py
Normal file → Executable file
4
recruitment/views.py
Normal file → Executable 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>
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user