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

Globally disabling relationship recursion ? #31

Open
Kangooroot opened this issue Aug 3, 2021 · 4 comments
Open

Globally disabling relationship recursion ? #31

Kangooroot opened this issue Aug 3, 2021 · 4 comments

Comments

@Kangooroot
Copy link

Kangooroot commented Aug 3, 2021

Hi,

I found myself systematically disabling every relation of my models, so that by default it does not recurse over all my tables.
Is there a way to disable relationship recursion by default ?

Thanks in advance.

@n0nSmoker
Copy link
Owner

Hi, I think its quite easy to implement.
Basically you need smth like serialize_related=False in model's / serialiser's interface
I can do it on this weekend.

@Kangooroot
Copy link
Author

Cool, it would be awesome !
Waitin' for it :)

@tom-cook-pmev
Copy link

Agreed this would be really useful.

@sarojbelbase
Copy link

#33
We could too add a default recursion depth. Please implement whichever will be more useful.

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

4 participants