1👍
✅
Are you using Django 1.6? The default session serializer was switched to JSON, which can cause problems if you put something in the session that is not serializable. You can switch back to the old pickle serializer using the SESSION_SERIALIZER setting. See the 1.6 release notes for details:
https://docs.djangoproject.com/en/dev/releases/1.6/#default-session-serialization-switched-to-json
You didn’t include all of your view code, but I’m betting you are putting a MyObject instance in the user’s session, which wouldn’t get serialized and throw the error until the redirect happens.
Source:stackexchange.com