From 61b5f1ffbd78996679ed3e04a436ad7d03e07be2 Mon Sep 17 00:00:00 2001 From: Shwetabh Kumar Date: Thu, 26 Nov 2020 01:07:42 +0530 Subject: [PATCH] Updating active key in source and destination creation --- fyle_accounting_mappings/models.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fyle_accounting_mappings/models.py b/fyle_accounting_mappings/models.py index b5f8161..a940211 100644 --- a/fyle_accounting_mappings/models.py +++ b/fyle_accounting_mappings/models.py @@ -64,6 +64,7 @@ def bulk_upsert_expense_attributes(attributes: List[Dict], workspace_id): value=attribute['value'], workspace_id=workspace_id, defaults={ + 'active': attribute['active'] if 'active' in attribute else None, 'source_id': attribute['source_id'], 'display_name': attribute['display_name'], } @@ -99,6 +100,7 @@ def bulk_upsert_destination_attributes(attributes: List[Dict], workspace_id): value=attribute['value'], workspace_id=workspace_id, defaults={ + 'active': attribute['active'] if 'active' in attribute else None, 'display_name': attribute['display_name'], 'destination_id': attribute['destination_id'] } diff --git a/setup.py b/setup.py index dbf8955..d0ef8d0 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='fyle-accounting-mappings', - version='0.3.0', + version='0.4.0', author='Shwetabh Kumar', author_email='shwetabh.kumar@fyle.in', description='Django application to store the fyle accounting mappings in a generic manner',