Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Allow model_to_dict to hydrate multiple paths #2

Open
cgearing opened this issue Sep 13, 2019 · 0 comments
Open

Allow model_to_dict to hydrate multiple paths #2

cgearing opened this issue Sep 13, 2019 · 0 comments

Comments

@cgearing
Copy link

At the moment, model_to_dict can take a path of relationships to hydrate, for example:

model_to_dict(person, ['parent', 'sister']) would result in hydrating the parent relationship on the Person model, and then hydrate the sister relationship on the Parent model.

It would be nice to be able to hydrate multiple relationship paths with a single call, an example could look like:

model_to_dict(person, ['parent', ['sister', 'brother]]

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

No branches or pull requests

1 participant