Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add craeted_by, updated_by to mapping_settings #130

Merged
merged 20 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions fyle_accounting_mappings/migrations/0028_auto_20241226_1030.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.14 on 2024-12-26 10:30

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('fyle_accounting_mappings', '0027_alter_employeemapping_source_employee'),
]

operations = [
migrations.AddField(
model_name='mappingsetting',
name='created_by',
field=models.CharField(blank=True, help_text='Email of the user who created this record', max_length=255, null=True),
),
migrations.AddField(
model_name='mappingsetting',
name='updated_by',
field=models.CharField(blank=True, help_text='Email of the user who last updated this record', max_length=255, null=True),
),
]
3 changes: 2 additions & 1 deletion fyle_accounting_mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .exceptions import BulkError
from .utils import assert_valid

from .mixins import AutoAddCreateUpdateInfoMixin

workspace_models = importlib.import_module("apps.workspaces.models")
Workspace = workspace_models.Workspace
Expand Down Expand Up @@ -518,7 +519,7 @@ def create_or_update_expense_fields(attributes: List[Dict], fields_included: Lis
return expense_fields


class MappingSetting(models.Model):
class MappingSetting(AutoAddCreateUpdateInfoMixin, models.Model):
"""
Mapping Settings
"""
Expand Down
Loading