Skip to content

Conversation

molten-firescar96
Copy link

I got a NotImpletemented exception when using .fetch on a generic reference field. This commit fixes the problem. I have a workaround, by declaring the reference_cls attribute explicitly in my own code, GenericReferenceField(reference_cls=MotorAsyncIOReference), but it seemed like a change I should submit upstream.

I noticed a related issue #349, so I'm trying to make this commit compatible.

What do you think?

@lafrech
Copy link
Collaborator

lafrech commented Aug 27, 2021

Sorry about the delay.

I agree with this change. I pushed a branch where I tried this on Reference field (to fix #349 @RICHIQ) and I'm happy with it.

https://github.com/Scille/umongo/tree/reference_cls

Do you think you could rework your PR to include those changes and add unit tests?

@lafrech lafrech mentioned this pull request Aug 27, 2021
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.

2 participants