Fix django-registration Django 1.7 compatibility.

Thanks to marcusmartins@github.com