diff --git a/backend/contest/serializers.py b/backend/contest/serializers.py index 35f9b5be1..3a77f2a8f 100644 --- a/backend/contest/serializers.py +++ b/backend/contest/serializers.py @@ -105,6 +105,7 @@ class ContestPasswordVerifySerializer(serializers.Serializer): class ACMContestRankSerializer(serializers.ModelSerializer): username = serializers.SerializerMethodField() prize = ContestPrizeSerializer() + class Meta: model = ACMContestRank fields = ["id", "accepted_number", "total_time", "total_penalty", "submission_info", "username", "prize"]