1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #1137 -- Added a _contains_() method to SessionWrapper. Thanks, Brant

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-12-29 19:17:32 +00:00
parent 632914f188
commit f7f812cd70
2 changed files with 6 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ class SessionWrapper(object):
self.session_key = session_key
self.modified = False
def __contains__(self, key):
return key in self._session
def __getitem__(self, key):
return self._session[key]