From 510f877408b25597b260e0ca7be204cee57b2922 Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Wed, 20 Mar 2019 10:52:10 -0400 Subject: [PATCH] quality --- lms/djangoapps/discussion_api/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/djangoapps/discussion_api/views.py b/lms/djangoapps/discussion_api/views.py index 7655f82cb5..0000bb1563 100644 --- a/lms/djangoapps/discussion_api/views.py +++ b/lms/djangoapps/discussion_api/views.py @@ -643,6 +643,9 @@ class ReplaceUsernamesView(APIView): ) def _replace_username(self, current_username, new_username): + """ + Replaces the current username with the new username in the forums service + """ try: # This API will be called after the regular LMS API, so the username in # the DB will have already been updated to new_username