mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-06-12 09:24:33 +02:00
@@ -0,0 +1,21 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2025-03-09 21:54
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('accounts', '0013_alter_account_visibility_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='account',
|
||||||
|
options={'ordering': ['name', 'id'], 'verbose_name': 'Account', 'verbose_name_plural': 'Accounts'},
|
||||||
|
),
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='accountgroup',
|
||||||
|
options={'ordering': ['name', 'id'], 'verbose_name': 'Account Group', 'verbose_name_plural': 'Account Groups'},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -19,6 +19,7 @@ class AccountGroup(SharedObject):
|
|||||||
verbose_name_plural = _("Account Groups")
|
verbose_name_plural = _("Account Groups")
|
||||||
db_table = "account_groups"
|
db_table = "account_groups"
|
||||||
unique_together = (("owner", "name"),)
|
unique_together = (("owner", "name"),)
|
||||||
|
ordering = ["name", "id"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
@@ -69,6 +70,7 @@ class Account(SharedObject):
|
|||||||
verbose_name = _("Account")
|
verbose_name = _("Account")
|
||||||
verbose_name_plural = _("Accounts")
|
verbose_name_plural = _("Accounts")
|
||||||
unique_together = (("owner", "name"),)
|
unique_together = (("owner", "name"),)
|
||||||
|
ordering = ["name", "id"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2025-03-09 21:54
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('currencies', '0013_alter_exchangerateservice_service_type'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='currency',
|
||||||
|
options={'ordering': ['name', 'id'], 'verbose_name': 'Currency', 'verbose_name_plural': 'Currencies'},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -38,6 +38,7 @@ class Currency(models.Model):
|
|||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _("Currency")
|
verbose_name = _("Currency")
|
||||||
verbose_name_plural = _("Currencies")
|
verbose_name_plural = _("Currencies")
|
||||||
|
ordering = ["name", "id"]
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
super().clean()
|
super().clean()
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def get_currency_exchange_map(date=None) -> Dict[str, dict]:
|
|||||||
effective_rate=F("rate"),
|
effective_rate=F("rate"),
|
||||||
)
|
)
|
||||||
.order_by("from_currency", "to_currency", "date_diff")
|
.order_by("from_currency", "to_currency", "date_diff")
|
||||||
.distinct("from_currency", "to_currency")
|
.distinct()
|
||||||
)
|
)
|
||||||
|
|
||||||
# Initialize the result dictionary
|
# Initialize the result dictionary
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2025-03-09 21:54
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('transactions', '0041_installmentplan_add_description_to_transaction_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='transactioncategory',
|
||||||
|
options={'ordering': ['name', 'id'], 'verbose_name': 'Transaction Category', 'verbose_name_plural': 'Transaction Categories'},
|
||||||
|
),
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='transactionentity',
|
||||||
|
options={'ordering': ['name', 'id'], 'verbose_name': 'Entity', 'verbose_name_plural': 'Entities'},
|
||||||
|
),
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='transactiontag',
|
||||||
|
options={'ordering': ['name', 'id'], 'verbose_name': 'Transaction Tags', 'verbose_name_plural': 'Transaction Tags'},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -213,6 +213,7 @@ class TransactionCategory(SharedObject):
|
|||||||
verbose_name_plural = _("Transaction Categories")
|
verbose_name_plural = _("Transaction Categories")
|
||||||
db_table = "t_categories"
|
db_table = "t_categories"
|
||||||
unique_together = (("owner", "name"),)
|
unique_together = (("owner", "name"),)
|
||||||
|
ordering = ["name", "id"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
@@ -236,6 +237,7 @@ class TransactionTag(SharedObject):
|
|||||||
verbose_name_plural = _("Transaction Tags")
|
verbose_name_plural = _("Transaction Tags")
|
||||||
db_table = "tags"
|
db_table = "tags"
|
||||||
unique_together = (("owner", "name"),)
|
unique_together = (("owner", "name"),)
|
||||||
|
ordering = ["name", "id"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
@@ -259,6 +261,7 @@ class TransactionEntity(SharedObject):
|
|||||||
verbose_name_plural = _("Entities")
|
verbose_name_plural = _("Entities")
|
||||||
db_table = "entities"
|
db_table = "entities"
|
||||||
unique_together = (("owner", "name"),)
|
unique_together = (("owner", "name"),)
|
||||||
|
ordering = ["name", "id"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|||||||
Reference in New Issue
Block a user