Ticket #3952: session-has_key.patch

File session-has_key.patch, 500 bytes (added by Collin Grady <cgrady@…>, 18 years ago)
  • django/contrib/sessions/middleware.py

     
    3636    def get(self, key, default=None):
    3737        return self._session.get(key, default)
    3838
     39    def has_key(self, key):
     40        return self._session.has_key(key)
     41
    3942    def set_test_cookie(self):
    4043        self[TEST_COOKIE_NAME] = TEST_COOKIE_VALUE
    4144
Back to Top