Ticket #4729: sessionwrapper_pop_modified.patch

File sessionwrapper_pop_modified.patch, 438 bytes (added by Ben Slavin <benjamin.slavin@…>, 17 years ago)

Sets SessionWrapper.modified when SessionWrapper.pop is called

  • django/contrib/sessions/middleware.py

     
    3737        return self._session.get(key, default)
    3838
    3939    def pop(self, key, *args):
     40        self.modified = True
    4041        return self._session.pop(key, *args)
    4142
    4243    def set_test_cookie(self):
Back to Top