Skip to content

Commit

Permalink
redirect to user read page on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Apr 24, 2014
1 parent 13e1257 commit a018e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/package.py
Expand Up @@ -1077,7 +1077,7 @@ def delete(self, id):
if request.method == 'POST':
get_action('package_delete')(context, {'id': id})
h.flash_notice(_('Dataset has been deleted.'))
h.redirect_to(controller='package', action='search')
h.redirect_to(controller='user', action='read')
c.pkg_dict = get_action('package_show')(context, {'id': id})
except NotAuthorized:
abort(401, _('Unauthorized to delete package %s') % '')
Expand Down

0 comments on commit a018e65

Please sign in to comment.