-
Notifications
You must be signed in to change notification settings - Fork 67
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
Bug: Required foreign key is empty #485
Comments
Can you provide |
At the beginning I had custom View with list of excluded fields and other settings but then I tried raw approach without any settings and this error still occurs.
However following code did the trick for me - I'm copying id from selected object into _id field:
My guess is that pydantic is unhappy about empty |
After some more digging it seems like the issue is here:
Because pydantic expects to have the |
Describe the bug
When creating a new entity which has required related model I've got an error.
To Reproduce
During saving the Facility there is an 422 http error and "{'company_id': 'Field required'}" in errors.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: