Skip to content
Browse files

Fix for partially populated relationships in follow_joins

  • Loading branch information...
1 parent 5b93c6f commit c656df2d2dc0d810f40575653c8e118b7352da41 @coleifer committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 peewee.py
View
2 peewee.py
@@ -1027,7 +1027,7 @@ def follow_joins(self, joins, collected_models, current):
if not fk_field:
continue
- if not joined_inst.get_id():
+ if not joined_inst.get_id() and fk_field.name in inst._data:
rel_inst_id = inst._data[fk_field.name]
joined_inst.set_id(rel_inst_id)

0 comments on commit c656df2

Please sign in to comment.
Something went wrong with that request. Please try again.