Set icon field length to 24

This commit is contained in:
Edgar P. Burkhart 2023-04-19 15:44:05 +02:00
parent 787427beec
commit 0ec3fa74b2
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,24 @@
# Generated by Django 4.1.4 on 2023-04-19 13:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("main", "0027_remove_account_uicon_remove_category_uicon_and_more"),
]
operations = [
migrations.AlterField(
model_name="account",
name="icon",
field=models.SlugField(default="bank", max_length=24, verbose_name="Icon"),
),
migrations.AlterField(
model_name="category",
name="icon",
field=models.SlugField(
default="folder", max_length=24, verbose_name="Icon"
),
),
]

View file

@ -44,7 +44,7 @@ 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"))
icon = models.SlugField(
max_length=16,
max_length=24,
default="bank",
verbose_name=_("Icon"),
)
@ -97,7 +97,7 @@ class Category(CustomModel):
max_length=64, default=_("Category"), verbose_name=_("Name")
)
icon = models.SlugField(
max_length=16,
max_length=24,
default="folder",
verbose_name=_("Icon"),
)