Skip to content

Commit ef3918e

Browse files
committed
Cast adapter to dict for serialization
Per @terite's comment: #40 (comment)
1 parent c37f4e0 commit ef3918e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def sync(self):
3939
# https://docs.djangoproject.com/en/1.9/topics/http/sessions/#when-sessions-are-saved
4040

4141
#add objects to session
42-
self._set_objects(self)
42+
self._set_objects(dict(self))
4343
#invalidate session
4444
self.session.modified = True
4545

0 commit comments

Comments
 (0)