From b429931ab7b3bec6dc072355058c783ca0ccf364 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Mon, 30 May 2022 13:57:17 +0200
Subject: [PATCH] fixed some changes

---
 satella/__init__.py | 2 +-
 satella/db.py       | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/satella/__init__.py b/satella/__init__.py
index 175cce4b..76dd40ce 100644
--- a/satella/__init__.py
+++ b/satella/__init__.py
@@ -1 +1 @@
-__version__ = '2.20.4a2'
+__version__ = '2.20.4a3'
diff --git a/satella/db.py b/satella/db.py
index 9a983704..1646dbdf 100644
--- a/satella/db.py
+++ b/satella/db.py
@@ -38,7 +38,9 @@ class transaction:
     @property
     def connection(self):
         if inspect.isfunction(self._connection):
-            return self._connection()
+            conn = self._connection()
+            self._connection = conn
+            return conn
         else:
             return self._connection
 
-- 
GitLab