I am trying to do django-registration. I found that it allows multiple registration for the same email. I want to prevent this. What is the best way to do this?
ok, I see that there is a subclass of RegistrationFormUniqueEmail. Now how to use this class? I changed this
def get_form_class(self, request): return RegistrationFormUniqueEmail
But it might be better to change this from my application and not into the source code. So how do I do this? thank
Once you have added registrationsettings to your file, you can use the form in your views.py, for example:
registration
from registration.forms import RegistrationFormUniqueEmail
form = RegistrationFormUniqueEmail()
. , , .
Source: https://habr.com/ru/post/1788760/More articles:I cannot add the latest MX record for Google Apps email, because Zerigo DNS only allows 10 records. Will it make a difference? - dnshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1788756/gaeunit-test-link-appears-to-be-broken&usg=ALkJrhgpLpI-GRg9pp6cdnriIBfDGmFVlgProof of NP-completeness of the problem - algorithmProblem using jQuery clone () for text field - jqueryHow to create a comment table in SQL - commentsselect a "virtual" column calculated from other existing columns - sqlCutting a large XML file into small pieces - xmlWhat are the differences between a free interface and a chain of methods? - terminologyIs it possible to determine whether a page will be modified by a specific domain? - javascriptGet facebook "Photos of others" with api schedule - facebookAll Articles