Skip to content

Commit 9dad354

Browse files
committed
Fix bug when using multiple keys with unique_together constrain
1 parent 55ca3cd commit 9dad354

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

psqlextra/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _rewrite_insert_update(self, sql, params, returning):
105105

106106
return (
107107
(
108-
'{insert} ON CONFLICT ({conflict_target}) DO UPDATE'
108+
'{insert} ON CONFLICT {conflict_target} DO UPDATE'
109109
' SET {update_columns} RETURNING {returning}'
110110
).format(
111111
insert=sql,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='django-postgres-extra',
10-
version='1.7',
10+
version='1.8',
1111
packages=find_packages(),
1212
include_package_data=True,
1313
license='MIT License',

0 commit comments

Comments
 (0)