mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 01:58:54 +02:00
changes
This commit is contained in:
@@ -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",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -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"),
|
||||
),
|
||||
]
|
||||
19
app/apps/accounts/migrations/0004_account_group.py
Normal file
19
app/apps/accounts/migrations/0004_account_group.py
Normal 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'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user