Compare commits

..

No commits in common. "8bd6f9b34f6dd725edc6825de05b98eff2408ff1" and "707ce532b6cc75d537d0844522925d77b5fa8921" have entirely different histories.

2 changed files with 2 additions and 5 deletions

1
TODO
View File

@ -0,0 +1 @@

View File

@ -176,7 +176,6 @@ class EvaFormView(LoginRequiredMixin, CookieWizardView):
data['accounts'] = [ACCOUNT_CHOICES[c] for c in data['accounts']]
# replace keys in data dictionary with verbose_name
# a bit ugly workaround here: we need to store 'email' away, because it es not in the modell
mail = ''
if 'email' in data:
mail = data.pop('email')
@ -187,8 +186,5 @@ class EvaFormView(LoginRequiredMixin, CookieWizardView):
#translate booleans
newdata.update({k:'Ja' for k,v in newdata.items() if isinstance(v,bool) and v == True})
newdata.update({k:'Nein' for k,v in newdata.items() if isinstance(v,bool) and v == False})
# handle some special data types
newdata.update({k:'' for k,v in newdata.items() if v == None})
newdata.update({k:'' for k,v in newdata.items() if v == []})
return newdata