Fixed change of Candidate interview from Candidate form
This commit is contained in:
parent
b15a8418fc
commit
2d8dd698bc
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ class CandidateForm(forms.ModelForm):
|
|||
self.initial['interview'].candidat = None
|
||||
self.initial['interview'].save()
|
||||
else:
|
||||
Interview.objects.filter(candidat=obj).update(candidat=None)
|
||||
self.cleaned_data['interview'].candidat = obj
|
||||
self.cleaned_data['interview'].save()
|
||||
return obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue