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

Fix tortoise orm implementation so it supports related fields #85

Closed
wants to merge 1 commit into from

Conversation

xouillet
Copy link

Hi,

Current tortoise implementation didn't use tortoise method to correctly fetch related fields, as shown in their documentation https://tortoise-orm.readthedocs.io/en/latest/examples/fastapi.html.

This PR add those methods

@vercel
Copy link

vercel bot commented Aug 13, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/flortz/fastapi-crudrouter/5warCPq1EXRFepwYq1g2sT5yDuas
✅ Preview: https://fastapi-crudrouter-git-fork-xouillet-master-flortz.vercel.app

@awtkns
Copy link
Owner

awtkns commented Aug 14, 2021

@xouillet thanks for this, would it be possible to add a tests where the current implementation is failing?

@xouillet
Copy link
Author

After further research, my PR is fixing the same thing as #68 which has a far better implementation. I will look into improving this PR instead of mine. Closing it now.

@xouillet xouillet closed this Aug 16, 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