MICROBA-311 Add US State field to UserProfile
Add list of states and field to UserProfile model; add migration; add state field to relevant serializers and to ACCOUNT_VISIBILITY_CONFIGURATION. Removes state data if country is changed to something other than United States.
Showing
- common/djangoapps/student/migrations/0033_userprofile_state.py 18 additions, 0 deletions...n/djangoapps/student/migrations/0033_userprofile_state.py
- common/djangoapps/student/models.py 58 additions, 0 deletionscommon/djangoapps/student/models.py
- lms/envs/common.py 1 addition, 0 deletionslms/envs/common.py
- openedx/core/djangoapps/user_api/accounts/api.py 8 additions, 0 deletionsopenedx/core/djangoapps/user_api/accounts/api.py
- openedx/core/djangoapps/user_api/accounts/serializers.py 3 additions, 1 deletionopenedx/core/djangoapps/user_api/accounts/serializers.py
- openedx/core/djangoapps/user_api/accounts/tests/test_api.py 18 additions, 0 deletionsopenedx/core/djangoapps/user_api/accounts/tests/test_api.py
- openedx/core/djangoapps/user_api/accounts/tests/test_views.py 11 additions, 6 deletions...edx/core/djangoapps/user_api/accounts/tests/test_views.py
Please register or sign in to comment