# HG changeset patch # User Marcin Kuzminski # Date 2017-08-29 13:46:26 # Node ID e89cfa8fe4b06a1793c4043920c807d8cd03f885 # Parent 107cb9598ca043008742b5b8da07ffe85bfd6e47 users: changed spelling of users_groups to user_groups. Because English :] 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 @@ -593,13 +593,14 @@ class AdminUsersView(BaseAppView, DataGr c.user = User.get_or_404(user_id) self._redirect_for_default_user(c.user.username) - users_groups = set(self.request.POST.getall('users_group_id')) - users_groups_model = [] + user_groups = set(self.request.POST.getall('users_group_id')) + user_groups_objects = [] - for ugid in users_groups: - users_groups_model.append(UserGroupModel().get_group(safe_int(ugid))) + for ugid in user_groups: + user_groups_objects.append( + UserGroupModel().get_group(safe_int(ugid))) user_group_model = UserGroupModel() - user_group_model.change_groups(c.user, users_groups_model) + user_group_model.change_groups(c.user, user_groups_objects) Session().commit() c.active = 'user_groups_management'