Ticket #4729: sessionwrapper_pop_modified.2.patch

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

Sets SessionWrapper.modified when SessionWrapper.pop finds an item

  • django/contrib/sessions/middleware.py

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