redex-ai / simple-django-login-and-register

An example of Django project with basic user functionality.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

REDEX #8

Open redex-ai opened 12 months ago

redex-ai commented 12 months ago

In the Create Account Page, add another field for phone number. The allowed size for phone number is 10

redex-ai-powered-okr-tool[bot] commented 12 months ago

Change Summary

The task involves adding a new phone number field to the user sign-up process. This includes updating the sign-up form, the User model, and the corresponding template. A new migration file will also be created to reflect the changes in the database schema.

FilePlan :-

File : source/accounts/forms.py

Add a new field for phone number in the SignUpForm with max_length=10 and required validators.

File : source/accounts/models.py

Add a new CharField for phone number in the User model with max_length=10.

File : source/accounts/templates/accounts/sign_up.html

Add a new input field for phone number in the sign-up form template.

File : source/accounts/migrations/000x_add_phone_number.py

Create a new migration file for adding the phone number field to the User model.

Please review the structure and let me know if any modifications are required.

redex-ai-powered-okr-tool[bot] commented 12 months ago

PULL REQUEST : https://github.com/redex-ai/simple-django-login-and-register/pull/9