I was just copying what they did in django-browserid's own views.