# HG changeset patch # User Marcin Kuzminski # Date 2019-05-06 08:20:31 # Node ID ccf1c60d20943444d7809db30811ec7bbd25c771 # Parent b7b32afdfdfc3646669a5f24022bb30b590524b8 users: personal repo group template also can use first/last names for an user diff --git a/rhodecode/apps/admin/views/users.py b/rhodecode/apps/admin/views/users.py --- a/rhodecode/apps/admin/views/users.py +++ b/rhodecode/apps/admin/views/users.py @@ -682,8 +682,7 @@ class UsersView(UserAppView): if personal_repo_group: raise HTTPFound(h.route_path('user_edit_advanced', user_id=user_id)) - personal_repo_group_name = RepoGroupModel().get_personal_group_name( - c.user) + personal_repo_group_name = RepoGroupModel().get_personal_group_name(c.user) named_personal_group = RepoGroup.get_by_group_name( personal_repo_group_name) try: diff --git a/rhodecode/model/repo_group.py b/rhodecode/model/repo_group.py --- a/rhodecode/model/repo_group.py +++ b/rhodecode/model/repo_group.py @@ -97,6 +97,8 @@ class RepoGroupModel(BaseModel): return string.Template(template).safe_substitute( username=user.username, user_id=user.user_id, + first_name=user.first_name, + last_name=user.last_name, ) def create_personal_repo_group(self, user, commit_early=True):