Ticket #17506: session_db-1.patch
File session_db-1.patch, 588 bytes (added by , 13 years ago) |
---|
-
django/contrib/sessions/backends/db.py
24 24 return {} 25 25 26 26 def exists(self, session_key): 27 try: 28 Session.objects.get(session_key=session_key) 29 except Session.DoesNotExist: 30 return False 31 return True 27 return Session.objects.filter(session_key=session_key).exists() 32 28 33 29 def create(self): 34 30 while True: