Django-registration, force unique e-mail

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

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

7条回答
  •  Happy的楠姐
    2020-12-03 14:49

    django-registration has several forms included in the source – one is a RegistrationFormUniqueEmail, which might help you ...


    P.S. You can adjust the form to use by changing the default backend or by implementing a custom one, where you return the appropriate form class, see: http://bitbucket.org/ubernostrum/django-registration/src/073835a4269f/registration/backends/default/init.py#cl-118

提交回复
热议问题