Skip to content

Instantly share code, notes, and snippets.

@nashibao
Created May 2, 2012 10:10
Show Gist options
  • Save nashibao/2575696 to your computer and use it in GitHub Desktop.
Save nashibao/2575696 to your computer and use it in GitHub Desktop.
modify django-redis-session
def create(self):
while True:
self._session_key = self._get_new_session_key()
try:
self.save(must_create=True)
except CreateError:
continue
self.modified = True
return
@nashibao
Copy link
Author

nashibao commented May 2, 2012

self.session_key = self._get_new_session_key()
->
self._session_key = self._get_new_session_key()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment