Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for partially populated relationships in follow_joins

  • Loading branch information...
commit c656df2d2dc0d810f40575653c8e118b7352da41 1 parent 5b93c6f
@coleifer authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.