This commit is contained in:
Herculino Trotta
2024-10-09 00:31:21 -03:00
parent e78e4cc5e1
commit 3dde44b1cd
139 changed files with 4965 additions and 1004 deletions

View File

@@ -0,0 +1,28 @@
# Generated by Django 5.1.1 on 2024-10-04 03:33
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("accounts", "0001_initial"),
("currencies", "0004_exchangerate"),
]
operations = [
migrations.AddField(
model_name="account",
name="exchange_currency",
field=models.ForeignKey(
blank=True,
help_text="Default currency for exchange calculations",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="exchange_accounts",
to="currencies.currency",
verbose_name="Exchange Currency",
),
),
]

View File

@@ -0,0 +1,41 @@
# Generated by Django 5.1.1 on 2024-10-08 23:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("accounts", "0002_account_exchange_currency"),
]
operations = [
migrations.CreateModel(
name="AccountGroup",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"name",
models.CharField(max_length=255, unique=True, verbose_name="Name"),
),
],
options={
"verbose_name": "Account Group",
"verbose_name_plural": "Account Groups",
"db_table": "account_groups",
},
),
migrations.AlterField(
model_name="account",
name="name",
field=models.CharField(max_length=255, verbose_name="Name"),
),
]

View File

@@ -0,0 +1,19 @@
# Generated by Django 5.1.2 on 2024-10-08 23:47
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_accountgroup_alter_account_name'),
]
operations = [
migrations.AddField(
model_name='account',
name='group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='accounts.accountgroup', verbose_name='Account Group'),
),
]