-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ss 643 make an option to edit account details #235
base: develop
Are you sure you want to change the base?
Ss 643 make an option to edit account details #235
Conversation
Co-authored-by: Viktor Sandström <[email protected]>
This reverts commit d321a3f.
user_form_details = self.user_edit_form_class( | ||
request.POST, | ||
instance=request.user, | ||
initial={ | ||
"email": user_profile_data.user.email, | ||
}, | ||
) | ||
|
||
profile_form_details = self.profile_edit_form_class( | ||
request.POST, | ||
instance=user_profile_data, | ||
initial={ | ||
"affiliation": user_profile_data.affiliation, | ||
}, | ||
) |
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.
Please make sure, that user cannot pass any other information in the form data.
For instance, that user via direct curl request cannot change their email or password.
] | ||
|
||
def __init__(self, *args, **kwargs): | ||
super(ProfileEditForm, self).__init__(*args, **kwargs) |
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.
super(ProfileEditForm, self).__init__(*args, **kwargs) | |
super().__init__(*args, **kwargs) |
removed comments Co-authored-by: Nikita Churikov <[email protected]>
fixed the gap after hash sign Co-authored-by: Nikita Churikov <[email protected]>
changed the comment text Co-authored-by: Nikita Churikov <[email protected]>
Description
Reference: SS-643
It should be an option under the Profile dropdown. Users can update their first name, last name, and department. The university and email will be shown but can't be edited. There should be a note on the page saying that to change email or university affiliation, they need to contact [email protected].
Types of changes
new feature
Checklist
If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
Further comments
Anything else you think we should know before merging your code!