Code

Ticket #4338: 4338.diff

File 4338.diff, 468 bytes (added by Gary Wilson <gary.wilson@…>, 7 years ago)

added pop method to SessionWrapper

Line 
1=== modified file 'django/contrib/sessions/middleware.py'
2--- django/contrib/sessions/middleware.py       2007-03-24 01:26:21 +0000
3+++ django/contrib/sessions/middleware.py       2007-05-19 05:05:26 +0000
4@@ -36,6 +36,9 @@
5     def get(self, key, default=None):
6         return self._session.get(key, default)
7 
8+    def pop(self, key, *args):
9+        return self._session.pop(key, *args)
10+
11     def set_test_cookie(self):
12         self[TEST_COOKIE_NAME] = TEST_COOKIE_VALUE
13 
14