-
-
Notifications
You must be signed in to change notification settings - Fork 26
Registration with Unique Emails #11
Comments
It is because And backend return the form like So you need to make your own registration backend and specify it like from registration.backend.default import DefaultRegistrationBackend
from registration.forms import RegistrationFormUniqueEmail
class MyRegistrationBackend(DefaultRegistrationBackend):
def get_registration_form_class(self):
return RegistrationFormUniqueEmail
# settings.py
REGISTRATION_BACKEND_CLASS = 'path.to.your.backend.MyRegistrationBackend' Anything else? |
I think that should be added to the docs as I had a similar problem and found the solution in this issue. |
Writing English doc. It is always really tough job for me... |
I'll volunteer! I'll clone the repo and add the instructions and if you On Fri, Feb 26, 2016 at 12:11 PM, Alisue notifications@github.com wrote:
Mick TimonyEver tried. Ever failed. No matter. Try Again. Fail again. Fail better. -- S. Beckett |
That helps me a lot thanks :-) |
I've been trying the registration form with unique emails but it is still letting in not unique emails. My urls.py is as below
from registration.forms import RegistrationFormUniqueEmail
from registration.views import RegistrationView
class RegistrationViewUniqueEmail(RegistrationView):
form_class = RegistrationFormUniqueEmail
urlpatterns = patterns('',
url(r'^$','homepage.views.index'),
)
The text was updated successfully, but these errors were encountered: