-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable custom_reg_form capability #256
Conversation
8f0dd25
to
7cc9505
Compare
The capability could be used enabled using the `REGISTRATION_EXTENSION_FORM` setting. This is a feature of upstream openedx, the platform has that capability of registration extension models and maybe for people like opencraft would like. refs: #253
7cc9505
to
1d75279
Compare
Hello, @johanv26, thanks for this feature. Only for better understanding:
|
I tested it by adding in my tenant the following:
And then I made a request to create a user... and it created the user with the info in the meta... but I didn't need to set the cc @johanv26 |
Hey @MaferMazu I think that is the expected behavior. How does this PR modify the current behavior? https://github.com/openedx/edx-platform/blob/open-release/palm.4/openedx/core/djangoapps/user_authn/views/registration_form.py#L298-L305 Why do we want this? "EDNX_CUSTOM_REGISTRATION_FIELDS": [
{
"label": "arabicname",
"name": "arabic_name",
"type": "text"
}
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @johanv26, looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected!
Hi everyone, should this PR be merged right now or is there something lacking? |
Hello @johanseto, should this PR be merged right now or is there something lacking? |
Hi @luisfelipec95, @bra-i-am, this pr is ready and there is nothing to add, however we are not aware of your merging process (bumpversion, tags, merge commit ... etc) that's why we prefer that you merge this |
Description
Enable the custom_reg_form. This is a feature of upstream openedx, and maybe for people like opencraft would like.
The field could be used using the
REGISTRATION_EXTENSION_FORM
setting. https://github.com/openedx/edx-platform/blob/master/openedx/core/djangoapps/user_authn/views/register.py#L205Useful information to include:
This is like a cherrypick of this PR: #256
Also, some logic has to be updated.
To know how this work with more explanation check this PR.
#253
Testing instructions
#253
Additional information
[Include anything else that will help reviewers and consumers understand the change.
Checklist for Merge