Set icon field length to 24
This commit is contained in:
parent
787427beec
commit
0ec3fa74b2
2 changed files with 26 additions and 2 deletions
|
@ -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"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -44,7 +44,7 @@ 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.SlugField(
|
icon = models.SlugField(
|
||||||
max_length=16,
|
max_length=24,
|
||||||
default="bank",
|
default="bank",
|
||||||
verbose_name=_("Icon"),
|
verbose_name=_("Icon"),
|
||||||
)
|
)
|
||||||
|
@ -97,7 +97,7 @@ class Category(CustomModel):
|
||||||
max_length=64, default=_("Category"), verbose_name=_("Name")
|
max_length=64, default=_("Category"), verbose_name=_("Name")
|
||||||
)
|
)
|
||||||
icon = models.SlugField(
|
icon = models.SlugField(
|
||||||
max_length=16,
|
max_length=24,
|
||||||
default="folder",
|
default="folder",
|
||||||
verbose_name=_("Icon"),
|
verbose_name=_("Icon"),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue