Created
May 2, 2012 10:10
-
-
Save nashibao/2575696 to your computer and use it in GitHub Desktop.
modify django-redis-session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
self.session_key = self._get_new_session_key()
->
self._session_key = self._get_new_session_key()