# HG changeset patch # User Mads Kiilerich # Date 1553446654 -3600 # Node ID 56233b874ebaa44518d84d383b7da122b9d7c2d9 # Parent a44211a99d28be2fb7f1fac42ff51573343d2eba pull-request: fix missing imports for delete and close Problem introduced in 21edd7f16681 - apparently a code path without automated test coverage. diff -r a44211a99d28 -r 56233b874eba kallithea/controllers/changeset.py --- a/kallithea/controllers/changeset.py Sun Mar 24 03:40:34 2019 +0100 +++ b/kallithea/controllers/changeset.py Sun Mar 24 17:57:34 2019 +0100 @@ -46,6 +46,7 @@ from kallithea.model.comment import ChangesetCommentsModel from kallithea.model.changeset_status import ChangesetStatusModel from kallithea.model.meta import Session +from kallithea.model.pull_request import PullRequestModel from kallithea.model.repo import RepoModel from kallithea.lib.vcs.backends.base import EmptyChangeset from kallithea.lib.utils2 import safe_unicode @@ -213,9 +214,9 @@ h.flash(_('Successfully deleted pull request %s') % pull_request_id, category='success') return { - 'location': url('my_pullrequests'), # or repo pr list? + 'location': h.url('my_pullrequests'), # or repo pr list? } - raise HTTPFound(location=url('my_pullrequests')) # or repo pr list? + raise HTTPFound(location=h.url('my_pullrequests')) # or repo pr list? raise HTTPForbidden() text = request.POST.get('text', '').strip()