Skip to content

Commit

Permalink
Support to maintain auto mapped rows (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Feb 15, 2021
1 parent 824fecf commit 51c2b6e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.0.3 on 2021-02-11 13:13

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('fyle_accounting_mappings', '0004_auto_20210127_1241'),
]

operations = [
migrations.AddField(
model_name='expenseattribute',
name='auto_mapped',
field=models.BooleanField(default=False, help_text='Indicates whether the field is auto mapped or not'),
),
]
1 change: 1 addition & 0 deletions fyle_accounting_mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class ExpenseAttribute(models.Model):
value = models.CharField(max_length=255, help_text='Value of expense attribute')
source_id = models.CharField(max_length=255, help_text='Fyle ID')
workspace = models.ForeignKey(Workspace, on_delete=models.PROTECT, help_text='Reference to Workspace model')
auto_mapped = models.BooleanField(default=False, help_text='Indicates whether the field is auto mapped or not')
active = models.BooleanField(null=True, help_text='Indicates whether the fields is active or not')
detail = JSONField(help_text='Detailed expense attributes payload', null=True)
created_at = models.DateTimeField(auto_now_add=True, help_text='Created at datetime')
Expand Down

0 comments on commit 51c2b6e

Please sign in to comment.