Not able to add custom fields to django-registration

前端 未结 3 1296
逝去的感伤
逝去的感伤 2020-12-10 22:44

I extended RegistrationFormUniqueEmail

class CustomRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
    first_name = forms.CharField(la         


        
3条回答
  •  心在旅途
    2020-12-10 23:15

    I'm not sure, off hand, why it isn't working but I am pretty sure you do not need to edit django-registration's views.py ... you can pass your new CustomRegistrationFormUniqueEmail as an argument in urls.py.

提交回复
热议问题