diff --git a/fyle_accounting_mappings/models.py b/fyle_accounting_mappings/models.py index 7b9540d..d757050 100644 --- a/fyle_accounting_mappings/models.py +++ b/fyle_accounting_mappings/models.py @@ -381,9 +381,11 @@ def create_or_update_expense_fields(attributes: List[Dict], fields_included: Lis if expense_field['field_name'] in fields_included or expense_field['type'] == 'DEPENDENT_SELECT': expense_fields, _ = ExpenseField.objects.update_or_create( attribute_type=expense_field['field_name'].replace(' ', '_').upper(), - source_field_id=expense_field['id'], workspace_id=workspace_id, - is_enabled=expense_field['active'] if 'active' in expense_field else False, + defaults={ + 'source_field_id': expense_field['id'], + 'is_enabled': expense_field['is_enabled'] if 'is_enabled' in expense_field else False + } ) return expense_fields diff --git a/setup.py b/setup.py index feeca64..761c8f0 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='fyle-accounting-mappings', - version='1.26.0', + version='1.26.1', author='Shwetabh Kumar', author_email='shwetabh.kumar@fyle.in', description='Django application to store the fyle accounting mappings in a generic manner',