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

Figure out an escape hatch? #2

Open
kezabelle opened this issue Mar 18, 2020 · 0 comments
Open

Figure out an escape hatch? #2

kezabelle opened this issue Mar 18, 2020 · 0 comments

Comments

@kezabelle
Copy link
Owner

Guarantee there's places where you can't fix the potential extra queries from being triggered. Probably in 3rd party apps, mostly. Or false-like positives where doing an extra query isn't the end of the world...

So wtf do I do in that scenario? For first-party code I could probably force an attribute onto the querysets/instances that get cloned:

x = MyModel.objects.all()
x._shouty_disabled = True
x.first().myrelation.pk

or something.
But 3rd party code would still be ruined...

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