Make GMBA narrow boolean field
This commit is contained in:
parent
9d022c6d3e
commit
1c78f6d8e3
3 changed files with 5 additions and 2 deletions
|
|
@ -455,6 +455,9 @@ def handle_object_dict(object_dict, model_name, debug=False):
|
|||
for i in ['select_300']:
|
||||
if i in object_dict:
|
||||
object_dict[i] = True if object_dict[i].lower().strip() == 'x' else False
|
||||
for i in ['gmba_narrow']:
|
||||
if i in object_dict:
|
||||
object_dict[i] = True if object_dict[i].lower().strip() == 'x' else False
|
||||
# area field can't be empty
|
||||
if 'area' in object_dict:
|
||||
if object_dict['area'] == '':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue