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

No support for deferred model proxies #346

Closed
serates opened this issue Dec 14, 2017 · 3 comments
Closed

No support for deferred model proxies #346

serates opened this issue Dec 14, 2017 · 3 comments

Comments

@serates
Copy link

serates commented Dec 14, 2017

Due to an extremely complex operation, i need to use a RawQuerySet, I am able to get past some lack of support for using raw query sets, however I haven't found a way to handle the type mismatch with a deferred object (this also would occur from a queryset that uses .only(),

I get the error message Expected value of type "MyModelNode" but got: MyModel_Deferred__.....

Is there any way for me to modify MyModelNode to accept defereed model instances?

@spockNinja
Copy link
Contributor

Thanks for the issue! There is a related discussion about proxy models in #319

Do you think the same solution would work for deferred proxies as well?

@serates
Copy link
Author

serates commented Jan 2, 2018

Sorry for the late response, was on holidays yes the solution in the linked issue should work for this too.

@phalt
Copy link
Contributor

phalt commented Apr 26, 2019

Duplicate of #319

@phalt phalt marked this as a duplicate of #319 Apr 26, 2019
@phalt phalt closed this as completed Apr 26, 2019
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

3 participants