Skip to content

Commit

Permalink
Merge pull request getredash#1177 from someones/users_list_fix
Browse files Browse the repository at this point in the history
Fix: users list CLI command was broken
  • Loading branch information
arikfr authored Jul 11, 2016
2 parents 317e815 + fcf2d68 commit a57a3ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a57a3ad

Please sign in to comment.