You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug has_one relationship not working as expected.
To Reproduce
Steps to reproduce the behavior:
Create a model
use the with_ method to get the has one related model.
You will hit a None type issue if one of the records are None
One of the records should be NULL in order to reproduce the None query bindings
Expected behavior
Should exclude the None types from the query
Screenshots
Screenshots help a lot. If applicable, add screenshots to help explain your problem.
"that is exactly what I do. but because buyer_id might be NULL (no buyer yet) the second query fails:"
query: 'SELECT * FROM "users" WHERE "users"."None" IN (?)'
Binding ('2',)
What database are you using?
Type: [e.g. Postgres, MySQL, SQLite]
Version [e.g. 8, 9.1, 10.5]
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
has_one
relationship not working as expected.To Reproduce
Steps to reproduce the behavior:
with_
method to get the has one related model.Expected behavior
Should exclude the None types from the query
Screenshots
Screenshots help a lot. If applicable, add screenshots to help explain your problem.
"that is exactly what I do. but because buyer_id might be NULL (no buyer yet) the second query fails:"
What database are you using?
Additional context
The text was updated successfully, but these errors were encountered: