Skip to content

Commit

Permalink
[#3196] Fix redirect import
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 31, 2016
1 parent b5ea2e7 commit 9b9313f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/tests/config/test_sessions.py
Expand Up @@ -6,7 +6,6 @@
from flask import render_template
from flask import redirect as flask_redirect
from flask import url_for
from ckan.lib.base import redirect as pylons_redirect
from ckan.lib.base import render as pylons_render

import ckan.plugins as p
Expand Down Expand Up @@ -126,4 +125,4 @@ def flash_message_action(self):
def add_flash_message_redirect(self):
# Adds a flash message and redirects to flask view
h.flash_success(u'This is a success message populated by Pylons')
return pylons_redirect(u'/flask_view_flash_message')
return h.redirect_to(u'/flask_view_flash_message')

0 comments on commit 9b9313f

Please sign in to comment.