Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Sivakov committed Nov 19, 2019
1 parent c461d99 commit d6f3a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/cli/user.py
Expand Up @@ -8,6 +8,7 @@
from six import text_type

import ckan.logic as logic
import ckan.plugins as plugin
from ckan.cli import error_shout

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -107,7 +108,7 @@ def remove_user(ctx, username):
site_user = logic.get_action(u'get_site_user')({u'ignore_auth': True}, {})
context = {u'user': site_user[u'name']}
with flask_app.test_request_context():
p.toolkit.get_action(u'user_delete')(context, {u'id': username})
plugin.toolkit.get_action(u'user_delete')(context, {u'id': username})
click.secho(u'Deleted user: %s' % username, fg=u'green', bold=True)


Expand Down

0 comments on commit d6f3a83

Please sign in to comment.