fixing sample code for building custom forms to work with django-registration's update to class-based views