forked from beba/foerderbarometer
changing saved value in database selfbuy_give_data to false when selfbuy true also in internview done()
This commit is contained in:
parent
2501bb0866
commit
b28c145454
|
@ -110,6 +110,8 @@ class InternView(LoginRequiredMixin, CookieWizardView):
|
|||
data = {}
|
||||
for form in form_list:
|
||||
data = {**data, **form.cleaned_data}
|
||||
if data['selfbuy'] == 'TRUE':
|
||||
data['selfbuy_give_data'] = 'False'
|
||||
print(data)
|
||||
|
||||
# write data to database
|
||||
|
|
Loading…
Reference in New Issue