From 894281b82226fa0a10a91d0abf1bdfdb72ca3c93 Mon Sep 17 00:00:00 2001 From: Adam Griffiths Date: Mon, 11 Jul 2016 17:04:35 +1000 Subject: [PATCH] Fix a copy paste error that broke list command --- redash/cli/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redash/cli/users.py b/redash/cli/users.py index 33a7eb0501..84e215fb86 100644 --- a/redash/cli/users.py +++ b/redash/cli/users.py @@ -133,9 +133,9 @@ def list(organization=None): """List all users""" if organization: org = models.Organization.get_by_slug(organization) - users = models.Users.select().where(models.Users.org==org.id) + users = models.User.select().where(models.User.org==org.id) else: - users = models.DataSource.select() + users = models.User.select() for i, user in enumerate(users): if i > 0: print "-" * 20