commit
97a99db33f
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class Session(object):
|
||||||
the keys given by self._attrs_to_sync.
|
the keys given by self._attrs_to_sync.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return {attr: getattr(self, attr, None) for attr in settings.SESSION_SYNC_ATTRS}
|
return {attr: getattr(self, attr) for attr in settings.SESSION_SYNC_ATTRS if hasattr(self, attr)}
|
||||||
|
|
||||||
def load_sync_data(self, sessdata):
|
def load_sync_data(self, sessdata):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue