Compare commits

..

No commits in common. "df0005ebe262236dc8db8b10ae43d430c7318155" and "629c99307211459f7c136c117b7e4d266692c1af" have entirely different histories.

2 changed files with 6 additions and 26 deletions

View file

@ -1,22 +0,0 @@
# Generated by Django 4.1.4 on 2023-04-19 08:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("main", "0025_alter_account_options_alter_invoice_options_and_more"),
]
operations = [
migrations.AlterField(
model_name="account",
name="uicon",
field=models.CharField(default="🏦", max_length=1, verbose_name="Icon"),
),
migrations.AlterField(
model_name="category",
name="uicon",
field=models.CharField(default="📂", max_length=1, verbose_name="Icon"),
),
]

View file

@ -43,9 +43,10 @@ def get_path(instance, filename):
class Account(CustomModel):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(max_length=64, default=_("Account"), verbose_name=_("Name"))
uicon = models.CharField(
max_length=2,
uicon = models.SlugField(
max_length=1,
default="🏦",
allow_unicode=True,
verbose_name=_("Icon"),
)
default = models.BooleanField(default=False, verbose_name=_("Default"))
@ -96,9 +97,10 @@ class Category(CustomModel):
name = models.CharField(
max_length=64, default=_("Category"), verbose_name=_("Name")
)
uicon = models.CharField(
max_length=2,
uicon = models.SlugField(
max_length=1,
default="📂",
allow_unicode=True,
verbose_name=_("Icon"),
)
budget = models.BooleanField(default=True, verbose_name=_("Budget"))