Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make expand instantiate classes within the calling object #30

Open
cathoderay opened this issue Aug 30, 2019 · 0 comments
Open

Make expand instantiate classes within the calling object #30

cathoderay opened this issue Aug 30, 2019 · 0 comments

Comments

@cathoderay
Copy link
Contributor

Currently, if we do

product = builton.product().get(id="5d67c87ad661690e5f6250a6", expand="company")

we get

type(product.company) == dict

We could instantiate a new object instead of treating it like a dict. For that, we could use the _cls key in the dict expanded to decide which model we should use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant