简体   繁体   中英

Django Registration Redux custom registration form

I'm really confused how I can change the registration_form to ask the users about their first and last name.
I think I need to manipulate subclass RegistrationView from registration.backends.simple.views but I don't know how to do this to show first and last name in registration form.

You should be able to sub-class RegistrationForm and add the fields you want.

Look at the source for the default forms on how to do so:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM