1
0
Fork 0

changing saved value in database selfbuy_give_data to false when selfbuy true also in internview done()

This commit is contained in:
alpcentaur 2023-02-27 17:09:29 +00:00
parent 2254b77a0d
commit e9de3fcb99
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ class InternView(LoginRequiredMixin, CookieWizardView):
data = {} data = {}
for form in form_list: for form in form_list:
data = {**data, **form.cleaned_data} data = {**data, **form.cleaned_data}
if data['selfbuy'] == 'TRUE':
data['selfbuy_give_data'] = 'False'
print(data) print(data)
# write data to database # write data to database