Commit 45e989a5 authored by Daniel Bacher's avatar Daniel Bacher
Browse files

fix getGroups method

parent 8be7ec2b
...@@ -143,6 +143,6 @@ class User(Model): ...@@ -143,6 +143,6 @@ class User(Model):
def get_groups(self): def get_groups(self):
self.load() self.load()
l = self.client.get_user_groups( l = self.client.get_user_groups(
for d in l: for d in l['all']:
y = Group(client=self.client, data=d) y = Group(client=self.client, data=d)
yield y yield y
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment