Skip to content

Commit

Permalink
fix: try to make code blocks visible
Browse files Browse the repository at this point in the history
  • Loading branch information
KyryloKireiev committed Sep 6, 2024
1 parent 6d8ceeb commit deb4cd5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/how_tos/adding_custom_fields_to_the_registration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You need to redefine several constants in the settings. Several methods can be u
- Go to `Site configurations` in admin: {{LMS}}/admin/site_configuration/siteconfiguration/
- Add new settings to OrderedDict (create new `Site configurations` if it wasn't before):

.. code-block:: json
.. code-block::
{
"ENABLE_DYNAMIC_REGISTRATION_FIELDS": "true",
"MFE_CONFIG": {
Expand All @@ -45,7 +45,7 @@ You need to redefine several constants in the settings. Several methods can be u
#. **For the local development or testing settings can be overriden in configuration files:**
- For example, constants can be added here: `env/apps/openedx/settings/lms/development.py`:

.. code-block:: python
.. code-block::
ENABLE_DYNAMIC_REGISTRATION_FIELDS = "true"
MFE_CONFIG["ENABLE_DYNAMIC_REGISTRATION_FIELDS"] = "true"
Expand All @@ -56,7 +56,7 @@ You need to redefine several constants in the settings. Several methods can be u
`In total, you must redefine 3 constants using the method that is most preferable for you:`

.. code-block:: python
.. code-block::
ENABLE_DYNAMIC_REGISTRATION_FIELD = True,
MFE_CONFIG["ENABLE_DYNAMIC_REGISTRATION_FIELDS"] = True,
Expand All @@ -74,21 +74,21 @@ Everything said above in instructions “**A**” is also relevant for adding fi

Example:

.. code-block:: python
{
"REGISTRATION_EXTENSION_FORM" = "you_application.form.ExtendedUserProfileForm",
"extended_profile_fields": [
"your_new_field_id",
"subscribe_to_emails",
"confirm_age_consent",
"something_else"
]
}
.. code-block::
{
"REGISTRATION_EXTENSION_FORM" = "you_application.form.ExtendedUserProfileForm",
"extended_profile_fields": [
"your_new_field_id",
"subscribe_to_emails",
"confirm_age_consent",
"something_else"
]
}
`In total, you must migrate to DB new user profile fields and redefine 3 constants using the method that is most preferable for you:`

.. code-block:: python
.. code-block::
ENABLE_DYNAMIC_REGISTRATION_FIELD = True,
MFE_CONFIG["ENABLE_DYNAMIC_REGISTRATION_FIELDS"] = True,
Expand Down

0 comments on commit deb4cd5

Please sign in to comment.