Skip to content

Commit

Permalink
Merge pull request #18 from eHealthAfrica/fix-redirect
Browse files Browse the repository at this point in the history
Fix redirect issue
  • Loading branch information
newkdukem committed Jan 9, 2018
2 parents d331ba5 + 4505091 commit 79bb6af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ckanext/requestdata/controllers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
NotAuthorized = logic.NotAuthorized
ValidationError = logic.ValidationError
clean_dict = logic.clean_dict
redirect = base.redirect
try:
# Support CKAN 2.6
redirect = base.redirect
except ImportError:
# Redirect is not redirect_to in CKAN 2.7
redirect = h.redirect_to
abort = base.abort
tuplize_dict = logic.tuplize_dict
parse_params = logic.parse_params
Expand Down

0 comments on commit 79bb6af

Please sign in to comment.