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

Dereferencing abstract documents correctly from reference fields and from_son #1801

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mmoonport
Copy link

Solves issue #1332. We run a very abstract relationship structure and ran into this issue many times. It turns out dereference wasn't honoring the cls attribute set on DBRefs when we make abstract documents. Also added the same checks into LazyReferenceField.

Hope this helps

@erdenezul erdenezul requested a review from touilleMan September 4, 2018 13:31
Copy link
Collaborator

@erdenezul erdenezul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mmoonport
Copy link
Author

Any idea on when this might get merged in. I would love to get off of my fork.

@bagerard
Copy link
Collaborator

bagerard commented Nov 5, 2018

Hi @mmoonport, first of all thanks for the contribution. If possible, I think adding some test could help to have this merged

@bagerard
Copy link
Collaborator

@mmoonport Kind reminder about this PR, I'm still looking forward to see a test (that was failing before and that would now pass) for validating this change. The description from the Issue ticket isn't explicit enough

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

Successfully merging this pull request may close these issues.

3 participants