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

Fixed #23266 -- Prevented extra query when checking for object types in query relation lookups in case of QuerySet. #3039

Closed
wants to merge 1 commit into from

Conversation

coder9042
Copy link
Contributor

No description provided.

@coder9042 coder9042 changed the title Fixed #23226 -- Prevented extra query when checking for object types in query relation lookups in case of QuerySet. Fixed #23266 -- Prevented extra query when checking for object types in query relation lookups in case of QuerySet. Aug 10, 2014
…in query relation lookups in case of QuerySet.
@akaariai
Copy link
Member

akaariai commented Aug 11, 2014

Merged in cdfdcf4. I changed the check to not check against QuerySet, but instead checked if the value has attribute model (and value.model attribute _meta). If so, then check directly against value.model.

@akaariai akaariai closed this Aug 11, 2014
@coder9042
Copy link
Contributor Author

@akaariai
Thanks.

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