Skip to content

Add ability to disable Model/QuerySet restrictions on use_query #104

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

Closed
Archmonger opened this issue Oct 14, 2022 · 0 comments · Fixed by #112
Closed

Add ability to disable Model/QuerySet restrictions on use_query #104

Archmonger opened this issue Oct 14, 2022 · 0 comments · Fixed by #112

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Oct 14, 2022

Current Situation

Currently, use_query will generate an exception of a Model or QuerySet isn't returned. This makes it incompatible with external ORMs such as SQLAlchemy or encode/orm

Proposed Actions

Create some kind of interface to remove these restrictions. Needs to be able to handle our current stuff as well, so maybe add two args to the hook:

fetch_recursive_classes=[QuerySet]
fetch_classes=[Model]

Argument variable names might need some more thought.

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

Successfully merging a pull request may close this issue.

1 participant