Skip to content

Commit 2b5a9e1

Browse files
authored
♻️(backend) increase user short_name field length
The user's short_name field length was set to 20. This is not enought and we have some users who cannot register because of that. We changed this length to a higher one, 100, like the full_name.
1 parent a833fdc commit 2b5a9e1

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ and this project adheres to
66

77
## [Unreleased]
88

9-
## Fixed
9+
### Changed
10+
11+
- ♻️(backend) increase user short_name field length
12+
13+
### Fixed
1014

1115
- 🐛(frontend) fix duplicate document entries in grid #1479
1216
- 🐛(frontend) show full nested doc names with ajustable bar #1456
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 5.2.7 on 2025-10-22 06:12
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("core", "0024_add_is_masked_field_to_link_trace"),
9+
]
10+
11+
operations = [
12+
migrations.AlterField(
13+
model_name="user",
14+
name="short_name",
15+
field=models.CharField(
16+
blank=True, max_length=100, null=True, verbose_name="short name"
17+
),
18+
),
19+
]

src/backend/core/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ class User(AbstractBaseUser, BaseModel, auth_models.PermissionsMixin):
148148
)
149149

150150
full_name = models.CharField(_("full name"), max_length=100, null=True, blank=True)
151-
short_name = models.CharField(_("short name"), max_length=20, null=True, blank=True)
151+
short_name = models.CharField(
152+
_("short name"), max_length=100, null=True, blank=True
153+
)
152154

153155
email = models.EmailField(_("identity email address"), blank=True, null=True)
154156

0 commit comments

Comments
 (0)