refactor-datamodel #10
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue