Skip to content

Commit

Permalink
better view
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 21, 2017
1 parent 88cced8 commit 2ab62e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/appier_extras/parts/admin/models/oauth/oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ def invalidate_s(self):
def tokens_v(self, *args, **kwargs):
cls = oauth_token.OAuthToken
kwargs["sort"] = kwargs.get("sort", [("id", -1)])
return dict(
kwargs.update(client = self.id)
return appier.lazy_dict(
model = cls,
entities = cls.find(client = self.id, *args, **kwargs),
page = cls.paginate(client = self.id, *args, **kwargs)
kwargs = kwargs,
entities = appier.lazy(lambda: cls.find(*args, **kwargs)),
page = appier.lazy(lambda: cls.paginate(*args, **kwargs))
)

0 comments on commit 2ab62e0

Please sign in to comment.