Selectively require/hide registration fields & add country/city fields
Extend the capabilities of the REGISTRATION_OPTIONAL_FIELDS configuration variable, to allow to select, for each individual field, if it should be 'hidden', 'optional' or 'required'. Rename the configuration variable to REGISTRATION_EXTRA_FIELDS to reflect the additional capabilities, and updates the defaults. As extra fields, configurable through the REGISTRATION_EXTRA_FIELDS variable. Hidden by default. Tickets: MCKIN-168 MCKIN-184 Note: Studio also has a registration page, which uses the same account creation page. It should be possible to use it without requiring the variable from the LMS, as the fields are different.
Showing
- common/djangoapps/student/migrations/0032_add_field_UserProfile_country_add_field_UserProfile_city.py 146 additions, 0 deletions...d_field_UserProfile_country_add_field_UserProfile_city.py
- common/djangoapps/student/models.py 3 additions, 0 deletionscommon/djangoapps/student/models.py
- common/djangoapps/student/views.py 44 additions, 20 deletionscommon/djangoapps/student/views.py
- lms/djangoapps/courseware/tests/test_registration_extra_vars.py 151 additions, 0 deletions...angoapps/courseware/tests/test_registration_extra_vars.py
- lms/envs/aws.py 1 addition, 1 deletionlms/envs/aws.py
- lms/envs/common.py 15 additions, 8 deletionslms/envs/common.py
- lms/templates/register.html 39 additions, 20 deletionslms/templates/register.html
- lms/templates/signup_modal.html 7 additions, 5 deletionslms/templates/signup_modal.html
Please register or sign in to comment