Set uicon length to 2 for composite emojis

This commit is contained in:
Edgar P. Burkhart 2023-04-19 10:11:21 +02:00
parent 93b31dabee
commit df0005ebe2
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

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"))
uicon = models.CharField(
max_length=1,
max_length=2,
default="🏦",
verbose_name=_("Icon"),
)
@ -97,7 +97,7 @@ class Category(CustomModel):
max_length=64, default=_("Category"), verbose_name=_("Name")
)
uicon = models.CharField(
max_length=1,
max_length=2,
default="📂",
verbose_name=_("Icon"),
)