This website works better with JavaScript.
Home
Help
Register
Sign In
alpcentaur
/
foerderbarometer
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
5
Wiki
Activity
Browse Source
changing saved value in database selfbuy_give_data to false when selfbuy true also in internview done()
master
corsaronero
2 years ago
parent
2501bb0866
commit
b28c145454
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
input/views.py
+ 2
- 0
input/views.py
View File
@ -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
Write
Preview
Loading…
Cancel
Save