Ticket #8269: only-save-sessions-when-modified.patch
File only-save-sessions-when-modified.patch, 608 bytes (added by , 16 years ago) |
---|
-
django/contrib/sessions/backends/base.py
33 33 return self._session[key] 34 34 35 35 def __setitem__(self, key, value): 36 self._session[key] = value 37 self.modified = True 36 if not key in self._session or self._session[key] != value: 37 self._session[key] = value 38 self.modified = True 38 39 39 40 def __delitem__(self, key): 40 41 del self._session[key]