Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cb109 committed Dec 9, 2020
1 parent e486247 commit 8723a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model_bakery/baker.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ def generate_value(self, field: Field, commit: bool = True) -> Any:
if callable(default):
default = default()
if is_fk:
# Pass instance instead of pk/<to_field> value. In case a c
# custom to_field is set, Django should populate
# Pass instance instead of pk/<to_field> value. In case a
# custom 'to_field' is set, Django should populate
# field.to_fields with a single string.
key = "pk"
if field.to_fields and field.to_fields[0] is not None:
Expand Down

0 comments on commit 8723a96

Please sign in to comment.