Commit 45e989a5 authored by daniel.bacher's avatar daniel.bacher

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(pk=self.pk) l = self.client.get_user_groups(pk=self.pk)
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