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

TypedModel reference fields don't work #222

Open
bschreck opened this issue Feb 8, 2024 · 2 comments
Open

TypedModel reference fields don't work #222

bschreck opened this issue Feb 8, 2024 · 2 comments

Comments

@bschreck
Copy link

bschreck commented Feb 8, 2024

I created a Scene(TypedModel) and Video(TypedModel), where Scene includes a reference to Video (video: Video). Creating a scene using Scene(video=video, **other_kwargs).save() does not associate the video with the scene. Doing scene.video results in a blank video containing none of the attributes of the passed in video instance, and doing Scene.collection.filter(video=video).fetch() results in an empty list

@bschreck
Copy link
Author

bschreck commented Feb 8, 2024

Note that using Model instead of TypedModel works fine

@ADR-007
Copy link
Collaborator

ADR-007 commented Feb 8, 2024

Note that using Model instead of TypedModel works fine

Hi! Could you please please show the field declaration for both Model and TypedModel?

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

2 participants