From 65ed3de1bd85fadae12ef6a6f8e954122c9bc826 Mon Sep 17 00:00:00 2001 From: Ali Salman Date: Wed, 22 Nov 2023 13:10:30 +0500 Subject: [PATCH] fix: remove unused imports and update doc strings --- lms/djangoapps/badges/api/serializers.py | 4 ++-- lms/djangoapps/badges/tasks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/badges/api/serializers.py b/lms/djangoapps/badges/api/serializers.py index 9013c071d96f..6af8e7a0c728 100644 --- a/lms/djangoapps/badges/api/serializers.py +++ b/lms/djangoapps/badges/api/serializers.py @@ -36,7 +36,7 @@ class Meta: class BadgeUserSerializer(serializers.ModelSerializer): """ - Serializer for the BadgeAssertion model. + Serializer for the User model. """ name = serializers.CharField(source='profile.name') profile_image_url = serializers.SerializerMethodField() @@ -61,7 +61,7 @@ class Meta: class UserLeaderboardSerializer(serializers.ModelSerializer): """ - Serializer for the BadgeAssertion model. + Serializer for the LeaderboardEntry model. """ user = BadgeUserSerializer(read_only=True) diff --git a/lms/djangoapps/badges/tasks.py b/lms/djangoapps/badges/tasks.py index 122c83fea636..008497f10537 100644 --- a/lms/djangoapps/badges/tasks.py +++ b/lms/djangoapps/badges/tasks.py @@ -7,7 +7,7 @@ from celery import shared_task from celery_utils.logged_task import LoggedTask from edx_django_utils.monitoring import set_code_owner_attribute -from lms.djangoapps.badges.models import BadgeAssertion, LeaderboardConfiguration, LeaderboardEntry +from lms.djangoapps.badges.models import LeaderboardEntry log = logging.getLogger(__name__)