`prev('form')` would probably work fine for that case. I'm okay with that given that you can't add anything in between it and the link without doing some silly JavaScript magic.

django-browserid doesn't offer login without a reload by default, but it's possible to create your own verification view that works via AJAX instead of using the form. At that point we expect you to use your own custom HTML and JavaScript. Affiliates does this for its login, for example.