Skip to content

Commit a0579ad

Browse files
use postgres in rollback on exception
1 parent 7a1da45 commit a0579ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integrations/django/myapp/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def postgres_insert_orm_no_autocommit_rollback(request, *args, **kwargs):
273273
)
274274
transaction.rollback(using="postgres")
275275
except Exception:
276+
transaction.rollback(using="postgres")
276277
transaction.set_autocommit(True, using="postgres")
277-
transaction.rollback()
278278
raise
279279

280280
transaction.set_autocommit(True, using="postgres")

0 commit comments

Comments
 (0)