OpenID compatibility fix for Django 1.6