1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #21608 -- Fixed incorrect cache key in cache session backend's save().

The bug was introduced commit 3389c5ea22.
This commit is contained in:
Jon Dufresne
2016-04-03 15:09:10 -07:00
committed by Tim Graham
parent fdf5cd3429
commit 5faf745999
2 changed files with 7 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ class SessionStore(SessionBase):
return self.create()
if must_create:
func = self._cache.add
elif self._cache.get(self.session_key) is not None:
elif self._cache.get(self.cache_key) is not None:
func = self._cache.set
else:
raise UpdateError