Change default icon for accounts
This commit is contained in:
parent
0e0b9fc927
commit
b9e3ee059e
2 changed files with 23 additions and 1 deletions
20
nummi/main/migrations/0014_alter_account_icon.py
Normal file
20
nummi/main/migrations/0014_alter_account_icon.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Generated by Django 4.1.4 on 2022-12-29 20:05
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("main", "0013_account_snapshot_account_transaction_account"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="account",
|
||||||
|
name="icon",
|
||||||
|
field=models.CharField(
|
||||||
|
default="building-columns", max_length=64, verbose_name="Icône"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -34,7 +34,9 @@ class CustomModel(UserModel):
|
||||||
class Account(CustomModel):
|
class Account(CustomModel):
|
||||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||||
name = models.CharField(max_length=64, default=_("Account"), verbose_name=_("Name"))
|
name = models.CharField(max_length=64, default=_("Account"), verbose_name=_("Name"))
|
||||||
icon = models.CharField(max_length=64, default="folder", verbose_name=_("Icon"))
|
icon = models.CharField(
|
||||||
|
max_length=64, default="building-columns", verbose_name=_("Icon")
|
||||||
|
)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
Loading…
Reference in a new issue