Skip to content

Commit 9ca30d0

Browse files
committed
fixed bug
1 parent 23f1552 commit 9ca30d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_valkey/base_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def __init__(
8787
options=self._options
8888
)
8989

90-
self._connection_factory = self._options.get(
91-
"DJANGO_VALKEY_CONNECTION_FACTORY", self.CONNECTION_FACTORY_PATH
90+
self._connection_factory = getattr(
91+
settings, "DJANGO_VALKEY_CONNECTION_FACTORY", self.CONNECTION_FACTORY_PATH
9292
)
9393
self.connection_factory = pool.get_connection_factory(
9494
options=self._options, path=self._connection_factory

0 commit comments

Comments
 (0)