Skip to content

Commit

Permalink
fix: user formatted_name cardinality on user creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Nov 22, 2023
1 parent b6cfa15 commit 62a9c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canaille/core/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def profile_create(current_app, form):

given_name = user.given_name if user.given_name else ""
family_name = user.family_name if user.family_name else ""
user.formatted_name = [f"{given_name} {family_name}".strip()]
user.formatted_name = f"{given_name} {family_name}".strip()
user.save()

if form["password1"].data:
Expand Down

0 comments on commit 62a9c32

Please sign in to comment.