Django-registration, force unique e-mail

前端 未结 7 1460
遇见更好的自我
遇见更好的自我 2020-12-03 14:32

Can I force users to make unique e-mail addresses in django-registration?

相关标签:
7条回答
  • 2020-12-03 15:03
    forms.py
    
    from registration.forms import RegistrationFormUniqueEmail
    
    class RegistroPerfilForm(RegistrationFormUniqueEmail):
        first_name= forms.CharField(required=True)
        last_name= forms.CharField(required=True)
        kind__of_user= forms.CharField(widget=forms.RadioSelect(choices=TIPO))
    
    0 讨论(0)
提交回复
热议问题