refactor-datamodel #10

Merged
tux merged 10 commits from refactor-datamodel into master 2020-03-14 23:08:56 +01:00
Showing only changes of commit 520edd22aa - Show all commits

View file

@ -29,6 +29,10 @@ class base_data_model():
def get_form_values_dict(self):
base_data = dict(zip(self.forms.keys(), map(lambda f: f.value, self.forms.values())))
base_data['address_label'] = \
f"{base_data['fullname']}\n\
{base_data['address_street']}\n\
{base_data['address_code']} {base_data['address_locality']}"
base_data['address_region'] = ''
return base_data