core: fix username validator not allowing changes that can be done via flows

closes #2755

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-05-24 19:40:54 +02:00
parent 2ca991ba3d
commit 482491e93c
2 changed files with 1 additions and 9 deletions

View File

@ -72,6 +72,7 @@ class UserSerializer(ModelSerializer):
)
groups_obj = ListSerializer(child=GroupSerializer(), read_only=True, source="ak_groups")
uid = CharField(read_only=True)
username = CharField(max_length=150)
class Meta: