changeset 7609:56233b874eba

pull-request: fix missing imports for delete and close Problem introduced in 21edd7f16681 - apparently a code path without automated test coverage.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 24 Mar 2019 17:57:34 +0100
parents a44211a99d28
children fd948cfea29a
files kallithea/controllers/changeset.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()