Question

I am using django-inspectional-registration which is based on the official django-registration.

I would like to ensure the uniqueness of the User's email field but I while I am using:

url(r'^register/$', RegistrationView.as_view(), {'form_class' : RegistrationFormUniqueEmail},
    name='registration_register'),

as suggested, a new registration with the same email always pass the verification.

Any suggestions?

Was it helpful?

Solution

Try passing the form class as an argument to as_view

url(r'^register/$', RegistrationView.as_view(form_class=RegistrationFormUniqueEmail),
name='registration_register')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top