From 96d87a9391b4cee85ac72e30aab4feac1d81148e Mon Sep 17 00:00:00 2001 From: Andrew Williamson Date: Wed, 9 Jan 2019 19:18:03 +0800 Subject: [PATCH] drop username editing (#10329) --- docs/topics/api/accounts.rst | 3 +- src/olympia/accounts/serializers.py | 32 ++-------------- src/olympia/accounts/tests/test_views.py | 22 +++-------- src/olympia/users/forms.py | 41 ++------------------- src/olympia/users/templates/users/edit.html | 5 --- src/olympia/users/tests/test_forms.py | 30 +++------------ 6 files changed, 19 insertions(+), 114 deletions(-) diff --git a/docs/topics/api/accounts.rst b/docs/topics/api/accounts.rst index 99e6ca8f4d..05a634e018 100644 --- a/docs/topics/api/accounts.rst +++ b/docs/topics/api/accounts.rst @@ -45,7 +45,7 @@ A developer is defined as a user who is listed as a developer or owner of one or :>json string|null occupation: The occupation of the user. :>json string|null picture_type: the image type (only 'image/png' is supported) if a user photo has been uploaded, or null otherwise. :>json string|null picture_url: URL to a photo of the user, or null if no photo has been uploaded. - :>json string username: username chosen by the user, used in the account url. If not set will be a randomly generated string. + :>json string username: deprecated property still included for backwards compatability. Previous chosen by the user, used in the account url. If not previously set will be a randomly generated string. @@ -137,7 +137,6 @@ but not listed below are not editable and will be ignored in the patch request. :