api: Remove encoding of string in update_user endpoint.

* Remove unnecessary json_validator for full_name parameter.
* Update frontend to pass the right parameter.
* Update documentation and note the change.

Fixes #18409.
This commit is contained in:
Gaurav Pandey
2021-10-16 23:22:57 +05:30
committed by Tim Abbott
parent 37d977f8f1
commit 1c1a1e2cad
7 changed files with 23 additions and 17 deletions

View File

@@ -163,7 +163,7 @@ def update_user_backend(
request: HttpRequest,
user_profile: UserProfile,
user_id: int,
full_name: Optional[str] = REQ(default=None, json_validator=check_string),
full_name: Optional[str] = REQ(default=None),
role: Optional[int] = REQ(
default=None,
json_validator=check_int_in(