[1.5.x] Fixed #20922 -- Allowed customizing the serializer used by contrib.sessions

https://code.djangoproject.com/ticket/20922