Login silently failed on Django 1.6 (closes #447)