H
H
hardwellZero2015-06-10 11:28:38
Django
hardwellZero, 2015-06-10 11:28:38

How to add custom fields to django-registration-redux?

Hello.
Installed django-registration-redux and set it up. It seems to work, but there are some minor nuances.
When registering, I want the user to fill in the following required fields:

  1. username (yes)
  2. password (yes)
  3. confirm_password (yes)
  4. email (yes)
  5. phone (no)

In the database, it would look like this:
Table auth_user:
id, password, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined, last_login.
app_customuserphone table:
id, phone, id_user
or
phone, id_user
Thus, I want to receive information about a specific user in the future (including the phone associated with him)
Thanks in advance;)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-06-10
@hardwellZero

Installed django-registration-redux
I don’t know how much you need all the functionality of this app, but if you need it, then the only solution is to use OneToOneField with ModelForm from this app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question