Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlewis committed Apr 21, 2017
1 parent aac80b2 commit aed5870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions querybuilder/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ def upsert(self, rows, unique_fields, update_fields, return_rows=False, return_m
unique_fields,
update_fields,
auto_field_name=auto_field_name,
return_rows=return_models
return_rows=return_rows or return_models
)

# get the cursor to execute the query
Expand All @@ -1769,7 +1769,7 @@ def upsert(self, rows, unique_fields, update_fields, return_rows=False, return_m
update_fields,
auto_field_name=auto_field_name,
only_insert=True,
return_rows=return_models
return_rows=return_rows or return_models
)

# get the cursor to execute the query
Expand Down

0 comments on commit aed5870

Please sign in to comment.