Skip to content

Commit b775d0c

Browse files
Saurav SharmaSaurav Sharma
authored andcommitted
Fix:Expire method fails when using DEFAULT_TIMEOUT #724
1 parent 1abeaa5 commit b775d0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django_redis/client/default.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ def expire(
299299
version: Optional[int] = None,
300300
client: Optional[Redis] = None,
301301
) -> bool:
302+
if timeout is DEFAULT_TIMEOUT:
303+
timeout = self._backend.default_timeout
304+
302305
if client is None:
303306
client = self.get_client(write=True)
304307

0 commit comments

Comments
 (0)