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

(Optional) ForeignKey fields aren't properly translated from the models to the api #1

Open
codingpaula opened this issue Dec 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@codingpaula
Copy link
Collaborator

Steps to reproduce: set up a minimal decision tree and set the color value on a leaf to a color with id 1. Now GET that tree (using /api/tree/latest for example).

Actual result: color is null

Expected result: color is 1

(Optional) Foreign Key fields are behaving strangely in this django-ninja version. I don't know if this is related to me using Python 3.8 that doesn't support setting my colore value to int | None.

@codingpaula codingpaula added the bug Something isn't working label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant