# HG changeset patch # User Marcin Kuzminski # Date 2018-04-16 06:54:15 # Node ID cff537f12b90783f5a97f0f8eb299fd5b3255bb1 # Parent 44d560deeeea528e81959ef158b0c9f40b594214 api: fixed problems with repository fork/create using celery backend. - fixes #5462 diff --git a/rhodecode/api/views/repo_api.py b/rhodecode/api/views/repo_api.py --- a/rhodecode/api/views/repo_api.py +++ b/rhodecode/api/views/repo_api.py @@ -698,7 +698,7 @@ def create_repo( 'repo_copy_permissions': schema_data['repo_copy_permissions'], } - task = RepoModel().create(form_data=data, cur_user=owner) + task = RepoModel().create(form_data=data, cur_user=owner.user_id) task_id = get_task_id(task) # no commit, it's done in RepoModel, or async via celery return { @@ -1096,7 +1096,7 @@ def fork_repo(request, apiuser, repoid, 'landing_rev': schema_data['repo_landing_commit_ref'], } - task = RepoModel().create_fork(data, cur_user=owner) + task = RepoModel().create_fork(data, cur_user=owner.user_id) # no commit, it's done in RepoModel, or async via celery task_id = get_task_id(task)