-
Notifications
You must be signed in to change notification settings - Fork 28
INTPYTHON-599 Make a field's custom lookups and transforms available in embedded model queries #293
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
Conversation
if isinstance(self.ref_field, EmbeddedModelField): | ||
opts = self.ref_field.embedded_model._meta | ||
new_field = opts.get_field(name) | ||
result = KeyTransformFactory(name, new_field) | ||
return KeyTransformFactory(name, new_field) | ||
if transform := self.ref_field.get_transform(name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outstanding change!! It simplifies a lot of things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just apply this changes.
The json handled is not longer needed in EMF resolver.
requested_changes.patch
No description provided.