Ticket #4338: 4338.diff

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

added pop method to SessionWrapper

  • django/contrib/sessions/middleware.py

    === modified file 'django/contrib/sessions/middleware.py'
     
    3636    def get(self, key, default=None):
    3737        return self._session.get(key, default)
    3838
     39    def pop(self, key, *args):
     40        return self._session.pop(key, *args)
     41
    3942    def set_test_cookie(self):
    4043        self[TEST_COOKIE_NAME] = TEST_COOKIE_VALUE
    4144
Back to Top