Django 1.6 session fix (#509)